Correctly return files of the correct type #1
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Andromeda/rust-http-server#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
set the content-type response header appropriately based on a) file extension and b) Accept request header. Currently the blog is broken because the css is returned as text/plain!
Pull request
d214b0bf86
fixed this issue, recognising text/javascript, text/css, text/html, image/png, and image/jpeg automatically based on file extensions and setting the Content-Type header accordingly. Otherwise, the Content-Type header is not set and is left to MIME sniffing or whatever on the browser side or on the part of a reverse proxy a user may be using (ferron, nginx, caddy, etc.)