-
-
Notifications
You must be signed in to change notification settings - Fork 770
Open
Description
This bug is only for v3.
When SetDoNotParseResponse(true)
with debug is true, have unexpected behavior:
Expected behavior: resty call should return immediately after the headers are received.
Actual behavior: the resty call blocks and waits until the entire response body is received before returning.
Related to original feature #87.
Maybe related to code here:
Lines 2280 to 2286 in 66256ef
if req.ResponseBodyUnlimitedReads || req.Debug { | |
response.wrapCopyReadCloser() | |
if err = response.readAll(); err != nil { | |
return response, err | |
} | |
} |
Metadata
Metadata
Assignees
Labels
No labels