Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku #3

Closed
alexpchin opened this issue Nov 20, 2014 · 1 comment
Closed

Heroku #3

alexpchin opened this issue Nov 20, 2014 · 1 comment

Comments

@alexpchin
Copy link

Hello, I'm getting empty .zip files on Heroku if I include the code:

configure :production do
      # Replace Sinatra's send_file with x_send_file
      Sinatra::Xsendfile.replace_send_file!

      # Set x_send_file header (default: X-SendFile)
      set :xsf_header, 'X-Accel-Redirect'
    end

Any ideas?

@vast
Copy link
Owner

vast commented Nov 20, 2014

Hi, Alex.

As far as I know, Heroku doesn't support X-Sendfile or X-Accel-Redirect headers. See the following threads:

@vast vast closed this as completed Nov 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants