Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable werkzeug header generation for files served via mod_xsendfile
For partial content requests, werkzeug's default behaviour is to calculate and add the necessary Content* headers in the response. However, mod-xsendfile, used by SD to deliver files more efficiently, will just pass through requests with pre-existing Content* headers, not even removing the X-Sendfile header used to invoke it. If USE_X_SENDIFLE is set to True in the Flask config, we should stop werkzeug from generating headers, and just let mod_xsendfile do it. (cherry picked from commit 9969e12)
- Loading branch information