Set correct content type for HTTP responses #14

Closed
opened 3 months ago by f · 0 comments
f commented 3 months ago

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 in Config.Types and if not, try to guess it.

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 in ```Config.Types``` and if not, try to guess it.
tslocum closed this issue 3 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.