We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32fa0d7 commit 057235aCopy full SHA for 057235a
1 file changed
main.go
@@ -131,8 +131,8 @@ func setContentType(r *http.Request, resp *http.Response) {
131
return
132
}
133
134
- rext := filepath.Ext(resp.Header.Get("ZIPSVR_FILENAME"))
135
- ext := filepath.Ext(r.URL.Path)
+ rext := strings.ToLower(filepath.Ext(resp.Header.Get("ZIPSVR_FILENAME")))
+ ext := strings.ToLower(filepath.Ext(r.URL.Path))
136
mime := ""
137
138
// If the request already has an extension, fetch the mime via extension
0 commit comments