fix #13894, httpclient hang on Http204
This commit is contained in:
parent
c835c8c4e7
commit
3036ec9c44
1 changed files with 1 additions and 1 deletions
|
|
@ -818,7 +818,7 @@ proc parseResponse(client: HttpClient | AsyncHttpClient,
|
||||||
if not fullyRead:
|
if not fullyRead:
|
||||||
httpError("Connection was closed before full request has been made")
|
httpError("Connection was closed before full request has been made")
|
||||||
|
|
||||||
if getBody:
|
if getBody and result.code != Http204:
|
||||||
when client is HttpClient:
|
when client is HttpClient:
|
||||||
client.bodyStream = newStringStream()
|
client.bodyStream = newStringStream()
|
||||||
result.bodyStream = client.bodyStream
|
result.bodyStream = client.bodyStream
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue