(req *http.Request)
| 249 | } |
| 250 | |
| 251 | func (*Proxy) removeBrEncoding(req *http.Request) { |
| 252 | encodings := strings.Split(strings.ReplaceAll(req.Header.Get("Accept-Encoding"), " ", ""), ",") |
| 253 | encodings = sliceutil.PruneEqual(encodings, "br") |
| 254 | req.Header.Set("Accept-Encoding", strings.Join(encodings, ", ")) |
| 255 | |
| 256 | } |
| 257 | |
| 258 | // ModifyResponse |
| 259 | func (p *Proxy) ModifyResponse(resp *http.Response) error { |