Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 authored Nov 1, 2023
1 parent b4fcc57 commit 9516954
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ func setContentType(r *http.Request, resp *http.Response) {
return
}

resp.Header.Del("Content-Type")

rext := strings.ToLower(filepath.Ext(resp.Header.Get("ZIPSVR_FILENAME")))
ext := strings.ToLower(filepath.Ext(strings.TrimSpace(r.URL.Path)))
mime := ""
Expand Down

0 comments on commit 9516954

Please sign in to comment.