Skip to content

Commit b3975b7

Browse files
committed
Fix unset content type regression
1 parent bbe0d88 commit b3975b7

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
@@ -174,6 +174,8 @@ func setContentType(r *http.Request, resp *http.Response) {
174174
return
175175
}
176176

177+
resp.Header.Del("Content-Type")
178+
177179
// If the request already has an extension, fetch the mime via extension
178180
if ext != "" && len(ext) > 1 {
179181
e := ext[1:]

0 commit comments

Comments
 (0)