diff options
Diffstat (limited to 'lib/rack/sendfile.rb')
-rw-r--r-- | lib/rack/sendfile.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/sendfile.rb b/lib/rack/sendfile.rb index 8e2c3d67..4a9b428b 100644 --- a/lib/rack/sendfile.rb +++ b/lib/rack/sendfile.rb @@ -116,7 +116,7 @@ module Rack when 'X-Accel-Redirect' path = F.expand_path(body.to_path) if url = map_accel_path(env, path) - headers['Content-Length'] = '0' + headers[CONTENT_LENGTH] = '0' headers[type] = url obody = body body = Rack::BodyProxy.new([]) do @@ -127,7 +127,7 @@ module Rack end when 'X-Sendfile', 'X-Lighttpd-Send-File' path = F.expand_path(body.to_path) - headers['Content-Length'] = '0' + headers[CONTENT_LENGTH] = '0' headers[type] = path obody = body body = Rack::BodyProxy.new([]) do |