-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
I am not sure where the source of this problem is, if it's in jruby-rack or rails.
When i send a file from a rails-controller using send_file with a path to the file the client receives only garbage data and way too much of it. This does not happen with MRI. If the file is just plain text the file goes through without problems.
I have set up a test-app here: https://gist.github.com/2770840
Place a compressed file (eg. jpeg or zip) called "testdata.jpeg" in the same directory and run rackup. http://localhost:9292 will now serve you a too large garbage version of that file.
jruby version: jruby 1.6.7 (ruby-1.9.2-p312) (2012-03-21 3e82bc8) (Java HotSpot(TM) Client VM 1.6.0_31) [darwin-i386-java]
Metadata
Metadata
Assignees
Labels
No labels