Serve .json files as application/json.

This commit is contained in:
Michael Kaye 2022-02-08 14:20:45 +00:00
parent 53e8947cb9
commit a7724b7bc8

View file

@ -119,6 +119,9 @@ func extensionToMimeType(path string) string {
return "image/jpeg"
}
if strings.HasSuffix(path, ".json") {
return "application/json"
}
return "application/octet-stream"
}