Set correct content type for HTTP responses #14

Closed
opened 2021-07-22 21:06:21 +00:00 by f · 0 comments
Contributor

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
No description provided.