Fix missing connection flag.

This commit is contained in:
cheatfate 2022-04-10 19:35:04 +03:00
parent 64386b3112
commit ae2a87778f
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 2 additions and 0 deletions

View File

@ -978,6 +978,7 @@ proc send*(request: HttpClientRequestRef): Future[HttpClientResponseRef] {.
request.setError(exc)
raise exc
connection.flags.incl(HttpClientConnectionFlag.Request)
request.connection = connection
try:
@ -1028,6 +1029,7 @@ proc open*(request: HttpClientRequestRef): Future[HttpBodyWriter] {.
request.setError(exc)
raise exc
connection.flags.incl(HttpClientConnectionFlag.Request)
request.connection = connection
try: