mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
Call requestAux not request in httpclient.
This commit is contained in:
@@ -1199,7 +1199,7 @@ proc request*(client: HttpClient | AsyncHttpClient, url: string,
|
||||
for i in 1..client.maxRedirects:
|
||||
if result.status.redirection():
|
||||
let redirectTo = getNewLocation(lastURL, result.headers)
|
||||
result = await client.request(redirectTo, httpMethod, body, headers)
|
||||
result = await client.requestAux(redirectTo, httpMethod, body, headers)
|
||||
lastURL = redirectTo
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user