Set correct content type for HTTP responses #14

Closed
opened 2 years ago by f · 0 comments
f commented 2 years 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 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/twins#14
Loading…
There is no content yet.