summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStormwind <stormwind@stormwinds-page.de>2012-11-24 15:19:02 +0100
committerStormwind <stormwind@stormwinds-page.de>2012-11-24 15:19:02 +0100
commit285b7f221495b8d80e3921876a17eaff799c14b8 (patch)
treee067e5e3871d7f1cf859c556ba47a23a5a089c69
parent82bafca46c6d6185508fed38a1f61321e94ea1d6 (diff)
Add self. on uses of own methods with an = in it
Fixes errors
-rw-r--r--lib/zero/response.rb6
1 files changed, 3 insertions, 3 deletions
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