diff options
author | Stormwind <stormwind@stormwinds-page.de> | 2012-11-24 15:35:23 +0100 |
---|---|---|
committer | Stormwind <stormwind@stormwinds-page.de> | 2012-11-24 15:35:23 +0100 |
commit | 8a75f9462d9a3fd9eaebf37ce530b9c578983438 (patch) | |
tree | d6d7e68e23b340d83aa78024b171a47bfa070876 /lib | |
parent | 5c45e1e20beeb33e3fef3a109ab7019e78d6c31b (diff) |
Add an = at the end of the content_type method
Shall made use of this functionality more confortable, even if it's not
a real attribute of this class.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zero/response.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb index 13a053e..22c718b 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -40,7 +40,7 @@ module Zero # Set content length, if not already set content_length unless header.has_key? 'Content-Length' # Set content type, if not already set - content_type 'text/html' unless header.has_key? 'Content-Type' + self.content_type = 'text/html' unless header.has_key? 'Content-Type' end [status, header, body] @@ -56,7 +56,7 @@ module Zero # Sets the content type to the given value # Also creates it, if it does not exists # - def content_type(value) + def content_type=(value) self.header['Content-Type'] = value end |