content-encoding identity support

addon-dailer
lqqyt2423 4 years ago
parent 9b0ebfaa79
commit 8b18fe465c

@ -53,7 +53,7 @@ func (r *Response) DecodedBody() ([]byte, error) {
} }
enc := r.Header.Get("Content-Encoding") enc := r.Header.Get("Content-Encoding")
if enc == "" { if enc == "" || enc == "identity" {
r.decodedBody = r.Body r.decodedBody = r.Body
return r.decodedBody, nil return r.decodedBody, nil
} }

Loading…
Cancel
Save