Opened 3 years ago
Closed 3 years ago
#34405 closed Bug (fixed)
Improper guessing of Mime Type for "br" and "Z" file types
| Reported by: | chamalsl | Owned by: | Mariusz Felisiak |
|---|---|---|---|
| Component: | HTTP handling | Version: | 4.1 |
| Severity: | Normal | Keywords: | |
| Cc: | chamalsl | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Below FileResponse will set the content type as text/html, even if the last file extension is "Z' or "br".
FileResponse(open('test.html.Z', 'rb'))
FileResponse(open('test.html.br', 'rb'))
Change History (4)
comment:1 by , 3 years ago
| Cc: | added |
|---|
comment:2 by , 3 years ago
| Component: | File uploads/storage → HTTP handling |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Bug |
Note:
See TracTickets
for help on using tickets.
Thanks for the report!