Skip to content

Commit 92b50d1

Browse files
committed
More realistic Accept-Language header
We had an example of a 500 response to imageproxy. Changing the Accept-Language header from `*` to a more realistic `en-US,en;q=0.8` fixed the issue. See https://3.basecamp.com/2914079/buckets/27/card_tables/cards/6211371753
1 parent 823b3ef commit 92b50d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imageproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (p *Proxy) serveImage(w http.ResponseWriter, r *http.Request) {
176176

177177
actualReq, _ := http.NewRequest("GET", req.String(), nil)
178178
actualReq.Header.Set("Accept", "*/*")
179-
actualReq.Header.Set("Accept-Language", "*")
179+
actualReq.Header.Set("Accept-Language", "en-US,en;q=0.8")
180180
if p.UserAgent != "" {
181181
actualReq.Header.Set("User-Agent", p.UserAgent)
182182
}

0 commit comments

Comments
 (0)