Created
February 17, 2012 08:33
-
-
Save psy-q/1851834 to your computer and use it in GitHub Desktop.
Rack::Sendfile returns the whole body instead of just writing the X-Sendfile header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This triggers said error, but only in our Rails 3.1.3 application, not in a blank Rails 3.1.3 application! | |
| class DownloadController < ApplicationController | |
| def download | |
| send_file("/tmp/test.txt") | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment