summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorEuan T <euantorano@users.noreply.github.com>2016-06-05 09:56:16 +0100
committerEuan T <euantorano@users.noreply.github.com>2016-06-05 09:56:16 +0100
commit06d471657970487524887d2f92bbbfd635573a07 (patch)
tree548f72d515c35b659e8bbb011831e6e863a20d5d /lib
parent92af223ab1a9aa97ba6ba63dfe7a867aaf24fb43 (diff)
downloadNim-06d471657970487524887d2f92bbbfd635573a07.tar.gz
Use passed user agent in `newAsyncHttpClient`
Fixes #4273.
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/httpclient.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim
index b59e792c4..b3a59551d 100644
--- a/lib/pure/httpclient.nim
+++ b/lib/pure/httpclient.nim
@@ -631,7 +631,7 @@ proc newAsyncHttpClient*(userAgent = defUserAgent,
   ## ``sslContext`` specifies the SSL context to use for HTTPS requests.
   new result
   result.headers = newStringTable(modeCaseInsensitive)
-  result.userAgent = defUserAgent
+  result.userAgent = userAgent
   result.maxRedirects = maxRedirects
   when defined(ssl):
     result.sslContext = sslContext