mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +08:00
fix: set to unknown to avoid Content-Length mismatched
This commit is contained in:
@@ -817,6 +817,7 @@ func decodeResponseBody(resp *http.Response) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
resp.Body = gr
|
resp.Body = gr
|
||||||
|
resp.ContentLength = -1 // set to unknown to avoid Content-Length mismatched
|
||||||
case "deflate":
|
case "deflate":
|
||||||
resp.Body = flate.NewReader(resp.Body)
|
resp.Body = flate.NewReader(resp.Body)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user