Skip to content

Commit 092440e

Browse files
committed
mime changes
1 parent 5eb9a37 commit 092440e

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

main.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,6 @@ func setContentType(r *http.Request, resp *http.Response) {
147147
mime = proxySettings.ExtMimeTypes[rext[1:]]
148148
}
149149

150-
if mime == "" {
151-
//Finally, just use the default type
152-
mime = proxySettings.ExtMimeTypes["default"]
153-
}
154-
155-
// If mime isn't accepted (and an accept header is given), then falsify the mime type
156-
accepted := r.Header.Get("Accept")
157-
if accepted != "" {
158-
if !strings.Contains(accepted, mime) {
159-
mime = strings.Split(accepted, ",")[0]
160-
}
161-
}
162-
163150
// Set content type header
164151
resp.Header.Set("Content-Type", mime)
165152
}

0 commit comments

Comments
 (0)