Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If filename contains non-ASCII characters, Django will raise UnicodeE…
…ncodeError exception when setting the X-SendFile header, because HTTP headers must be ASCII only. A workaround for this problem is to pass the filename through Django's `smart_str()` function to convert it to a bytestream.
- Loading branch information