Skip to content

Commit

Permalink
ensure correct prefix use
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jan 22, 2024
1 parent 474fe78 commit a9cf71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/hdl_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a9cf71b

Please sign in to comment.