Call requestAux not request in httpclient.

This commit is contained in:
Dominik Picheta 2018-04-07 18:15:42 +01:00
commit 992300b300

View file

@ -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