From 8b18fe465c8d3c36e2f03ae5e7de5997eae33514 Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Thu, 4 Feb 2021 15:16:16 +0800 Subject: [PATCH] content-encoding identity support --- flow/encoding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/encoding.go b/flow/encoding.go index 769a63f..31d090e 100644 --- a/flow/encoding.go +++ b/flow/encoding.go @@ -53,7 +53,7 @@ func (r *Response) DecodedBody() ([]byte, error) { } enc := r.Header.Get("Content-Encoding") - if enc == "" { + if enc == "" || enc == "identity" { r.decodedBody = r.Body return r.decodedBody, nil }