mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-01 18:00:25 +01:00
added content-type serving exception tests
This commit is contained in:
1 parent
8091a756e8
commit
fe2d90641c
2 files changed
+84
-9
No files matched your search
@@ -459,7 +459,7 @@ func (s *System) Serve(res http.ResponseWriter, req *http.Request, fileKey strin
|
||||
// make an exception for specific content types and force a custom
|
||||
// content type to send in the response so that it can be loaded properly
|
||||
extContentType := realContentType
|
||||
if ct, found := manualExtensionContentTypes[filepath.Ext(name)]; found {
|
||||
if ct, found := manualExtensionContentTypes[filepath.Ext(fileKey)]; found {
|
||||
extContentType = ct
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user