Added content length to xsendfile #447

Closed
wants to merge 1 commit into from

3 participants

@ib-lundgren

Attempting to download large files using send_file with X-Sendfile headers did not work with Python 2.7.2, Apache 2.2.20 on Ubuntu 11.10, only an empty file was downloaded. Setting the "Content-Length" header solved the issue. I can't see why it would hurt to always have it there since response content is discarded when using X-Sendfile anyway.

@mitsuhiko
The Pallets Projects member

I guess probably reasonable to do that. If it breaks something we can revert it.

@mitsuhiko mitsuhiko closed this Oct 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment