summary refs log tree commit
path: root/lib/rack/chunked.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rack/chunked.rb')
-rw-r--r--lib/rack/chunked.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/chunked.rb b/lib/rack/chunked.rb
index ea221fa9..36c4959d 100644
--- a/lib/rack/chunked.rb
+++ b/lib/rack/chunked.rb
@@ -56,11 +56,11 @@ module Rack
 
       if ! chunkable_version?(env['HTTP_VERSION']) ||
          STATUS_WITH_NO_ENTITY_BODY.include?(status) ||
-         headers['Content-Length'] ||
+         headers[CONTENT_LENGTH] ||
          headers['Transfer-Encoding']
         [status, headers, body]
       else
-        headers.delete('Content-Length')
+        headers.delete(CONTENT_LENGTH)
         headers['Transfer-Encoding'] = 'chunked'
         [status, headers, Body.new(body)]
       end