Closed emlyn closed 5 years ago
Actually, according to this, the Content-Type header should be omitted if the mime type is not known.
Github now automatically closes the issue instead of mentioning it based on commit messages? 🤔
Released 0.1.2
. Thanks!
Trying to get an empty file returns a 500 response with a
MagicMatchNotFoundException
exception and stacktrace. I imagine this could also happen for other files where the mime type cannot be determined.It should probably fall back to a default like
application/octet-stream
if the mime type cannot be determined.