diff options
Diffstat (limited to 'lib/rack/chunked.rb')
-rw-r--r-- | lib/rack/chunked.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/chunked.rb b/lib/rack/chunked.rb index 0c8b4ae8..e7e7d8d1 100644 --- a/lib/rack/chunked.rb +++ b/lib/rack/chunked.rb @@ -62,7 +62,7 @@ module Rack # a version (nor response headers) def chunkable_version?(ver) case ver - when "HTTP/1.0", nil, "HTTP/0.9" + when 'HTTP/1.0', nil, 'HTTP/0.9' false else true @@ -73,7 +73,7 @@ module Rack status, headers, body = @app.call(env) headers = HeaderHash.new(headers) - if ! chunkable_version?(env[HTTP_VERSION]) || + if ! chunkable_version?(env[SERVER_PROTOCOL]) || STATUS_WITH_NO_ENTITY_BODY.key?(status.to_i) || headers[CONTENT_LENGTH] || headers[TRANSFER_ENCODING] |