aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStormwind <stormwind@stormwinds-page.de>2012-11-24 15:28:42 +0100
committerStormwind <stormwind@stormwinds-page.de>2012-11-24 15:28:42 +0100
commit5c45e1e20beeb33e3fef3a109ab7019e78d6c31b (patch)
tree58081ac474244cee9f5a220720974b4abea10f2b /lib
parent285b7f221495b8d80e3921876a17eaff799c14b8 (diff)
Delete Content-Length. Conten-Type and body on status 304
Diffstat (limited to 'lib')
-rw-r--r--lib/zero/response.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb
index ab4c70b..13a053e 100644
--- a/lib/zero/response.rb
+++ b/lib/zero/response.rb
@@ -31,8 +31,8 @@ module Zero
# @return [Array]
#
def to_a
- # TODO Remove content length and body, on certain status codes
- if status == 204
+ # Remove content length and body, on status 204 and 304
+ if status == 204 or status == 304
header.delete('Content-Length')
header.delete('Content-Type')
self.body = []