Skip to content

Commit 992300b

Browse files
committed
Call requestAux not request in httpclient.
1 parent c6e0872 commit 992300b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pure/httpclient.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ proc request*(client: HttpClient | AsyncHttpClient, url: string,
11991199
for i in 1..client.maxRedirects:
12001200
if result.status.redirection():
12011201
let redirectTo = getNewLocation(lastURL, result.headers)
1202-
result = await client.request(redirectTo, httpMethod, body, headers)
1202+
result = await client.requestAux(redirectTo, httpMethod, body, headers)
12031203
lastURL = redirectTo
12041204

12051205

0 commit comments

Comments
 (0)