Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

We should delete the X-Sendfile header so we don't confuse Apache

git-svn-id: http://svn.macosforge.org/repository/ruby/ControlTower/trunk@4516 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
commit f625db610d66dae79aa616ab6c69615239874044 1 parent b530551
@jballanc jballanc authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/control_tower/rack_socket.rb
View
1  lib/control_tower/rack_socket.rb
@@ -53,6 +53,7 @@ def open
x_sendfile = headers[x_sendfile_header]
x_sendfile = ::File.open(x_sendfile, 'r') unless x_sendfile.kind_of? IO
x_sendfile_size = x_sendfile.stat.size
+ headers.delete(x_sendfile_header)
headers['Content-Length'] = x_sendfile_size
end
Please sign in to comment.
Something went wrong with that request. Please try again.