httpx: remove string to string conversion

Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
This commit is contained in:
Miguel Ángel Jimeno 2020-08-25 20:31:38 +02:00
parent 394c1e8527
commit 3cc74aabc5

View File

@ -117,7 +117,7 @@ func (h *HTTPX) Do(req *retryablehttp.Request) (*Response, error) {
return nil, err
}
resp.Raw = string(rawresp)
resp.Raw = rawresp
var respbody []byte
// websockets don't have a readable body