Call requestAux not request in httpclient.
This commit is contained in:
parent
c6e08725c1
commit
992300b300
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue