Set correct content type for HTTP responses
Closedopened 2 years ago by f · 0 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. 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 in
Config.Typesand if not, try to guess it.