diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2018-04-07 18:15:42 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2018-04-07 18:16:08 +0100 |
commit | 992300b30057e2b3b489b90fb0e7011607e3e8cf (patch) | |
tree | 233a05244ed04d595dcd9757b03ec9dd7e84aaf1 | |
parent | c6e08725c1be978d644547f5140ab3301538236e (diff) | |
download | Nim-992300b30057e2b3b489b90fb0e7011607e3e8cf.tar.gz |
Call requestAux not request in httpclient.
-rw-r--r-- | lib/pure/httpclient.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index 568e453bd..70fb19434 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -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 |