mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-14 01:58:14 +02:00
added predefined mime types list and other minor ui improvements
This commit is contained in:
1 parent
e5477961ad
commit
ecfae2e5c9
53 files changed
+554
-343
No files matched your search
@@ -310,7 +310,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 directly
|
||||
// content type to send in the response so that it can be loaded properly
|
||||
extContentType := realContentType
|
||||
if ct, found := manualExtensionContentTypes[filepath.Ext(name)]; found && extContentType != ct {
|
||||
extContentType = ct
|
||||
|
||||
Reference in new issue
Block a user