Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Content-Type for compressed StaticFileHandler file
The python mimetypes module used by StaticFileHandler will recognize compression (gzip, bz2, etc.) as the file encoding, and will give the mime type for the uncompressed file. This commit will fix this behavior, so a gzip file will end up as application/gzip. Additionally, unknown file types (or known file types compressed with anything other than gzip) are served as application/octet-stream.
- Loading branch information