Serve .json files as application/json.
This commit is contained in:
parent
53e8947cb9
commit
a7724b7bc8
1 changed files with 3 additions and 0 deletions
|
@ -119,6 +119,9 @@ func extensionToMimeType(path string) string {
|
||||||
return "image/jpeg"
|
return "image/jpeg"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasSuffix(path, ".json") {
|
||||||
|
return "application/json"
|
||||||
|
}
|
||||||
return "application/octet-stream"
|
return "application/octet-stream"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue