Skip to content

Commit 9516954

Browse files
authored
Update main.go
1 parent b4fcc57 commit 9516954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ func setContentType(r *http.Request, resp *http.Response) {
149149
return
150150
}
151151

152+
resp.Header.Del("Content-Type")
153+
152154
rext := strings.ToLower(filepath.Ext(resp.Header.Get("ZIPSVR_FILENAME")))
153155
ext := strings.ToLower(filepath.Ext(strings.TrimSpace(r.URL.Path)))
154156
mime := ""

0 commit comments

Comments
 (0)