rails/rails — pull request #7027 by erichmenge (2012-07-10 21:06:34+00:00)
Title: Backport 5c51cd0

Fixes #6844.
This appears to be a jRuby bug, but it is by-passed by 5c51cd0.

No tests added because `actionpack/test/controller/send_file_test.rb` `send_file_stream` and `send_file_nostream` both fail under jRuby jruby 1.6.7 (ruby-1.9.2-p312) without this patch.