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