MCPcopy
hub / github.com/projectdiscovery/proxify / removeBrEncoding

Method removeBrEncoding

proxy.go:251–256  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

249}
250
251func (*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
259func (p *Proxy) ModifyResponse(resp *http.Response) error {

Callers 1

ModifyRequestMethod · 0.95

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected