[macruby-changes] [4516] ControlTower/trunk/lib/control_tower/rack_socket.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 15 16:41:10 PDT 2010
Revision: 4516
http://trac.macosforge.org/projects/ruby/changeset/4516
Author: joshua.ballanco at apple.com
Date: 2010-09-15 16:41:09 -0700 (Wed, 15 Sep 2010)
Log Message:
-----------
We should delete the X-Sendfile header so we don't confuse Apache
Modified Paths:
--------------
ControlTower/trunk/lib/control_tower/rack_socket.rb
Modified: ControlTower/trunk/lib/control_tower/rack_socket.rb
===================================================================
--- ControlTower/trunk/lib/control_tower/rack_socket.rb 2010-09-14 10:12:14 UTC (rev 4515)
+++ ControlTower/trunk/lib/control_tower/rack_socket.rb 2010-09-15 23:41:09 UTC (rev 4516)
@@ -53,6 +53,7 @@
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100915/ce8ca8c4/attachment.html>
More information about the macruby-changes
mailing list