Set correct content type for HTTP responses #14
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: tslocum/twins#14
Loading…
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?
Currently, the HTTP proxy can only serve gemini (with gmitohtml conversion) and html files. All other files are served, but with
Content-Type: text/plain
. Maybe the same mechanism as implemented in serve_file.go need to be applied here (check if the extension is inConfig.Types
and if not, try to guess it.