From 285b7f221495b8d80e3921876a17eaff799c14b8 Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sat, 24 Nov 2012 15:19:02 +0100 Subject: Add self. on uses of own methods with an = in it Fixes errors --- lib/zero/response.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/zero/response.rb b/lib/zero/response.rb index c86e5df..ab4c70b 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -35,7 +35,7 @@ module Zero if status == 204 header.delete('Content-Length') header.delete('Content-Type') - body = [] + self.body = [] else # Set content length, if not already set content_length unless header.has_key? 'Content-Length' @@ -50,14 +50,14 @@ module Zero # Also creates one, if it does not exists # def content_length - header['Content-Length'] = body.join.bytesize + self.header['Content-Length'] = body.join.bytesize end # Sets the content type to the given value # Also creates it, if it does not exists # def content_type(value) - header['Content-Type'] = value + self.header['Content-Type'] = value end end -- cgit v1.2.3-70-g09d2