From a9cf71bbe063e5c8c7da04c789f227025dea1677 Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 22 Jan 2024 10:44:52 -0800 Subject: [PATCH] ensure correct prefix use --- server/hdl_files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/hdl_files.go b/server/hdl_files.go index 97a3d83bb..eb09f1082 100644 --- a/server/hdl_files.go +++ b/server/hdl_files.go @@ -28,7 +28,7 @@ import ( // Allowed mime types for user-provided Content-type field. Must be alphabetically sorted. // Types not in the list are converted to "application/octet-stream". // See https://www.iana.org/assignments/media-types/media-types.xhtml -var allowedMimeTypes = []string{"application", "audio", "font", "image", "text", "video"} +var allowedMimeTypes = []string{"application/", "audio/", "font/", "image/", "text/", "video/"} func largeFileServe(wrt http.ResponseWriter, req *http.Request) { now := types.TimeNow()