From e5b53df245d25873dd13c93b88659e81f665b3dc Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 21 Feb 2022 20:11:55 +0800 Subject: [PATCH] fix: set to unknown to avoid Content-Length mismatched --- runner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runner.go b/runner.go index 2665e7c1..1e826734 100644 --- a/runner.go +++ b/runner.go @@ -817,6 +817,7 @@ func decodeResponseBody(resp *http.Response) error { return err } resp.Body = gr + resp.ContentLength = -1 // set to unknown to avoid Content-Length mismatched case "deflate": resp.Body = flate.NewReader(resp.Body) }