This fixes 19253 by marking the bodyStream as completed when no content was sent.
This commit is contained in:
parent
c55930f2e6
commit
3e31f55aed
1 changed files with 3 additions and 0 deletions
|
|
@ -869,6 +869,9 @@ proc parseResponse(client: HttpClient | AsyncHttpClient,
|
|||
client.parseBodyFut.addCallback do():
|
||||
if client.parseBodyFut.failed:
|
||||
client.bodyStream.fail(client.parseBodyFut.error)
|
||||
else:
|
||||
when client is AsyncHttpClient:
|
||||
result.bodyStream.complete()
|
||||
|
||||
proc newConnection(client: HttpClient | AsyncHttpClient,
|
||||
url: Uri) {.multisync.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue