summary refs log tree commit diff stats
path: root/lib/pure/httpclient.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-04 02:22:38 +0200
committerAraq <rumpf_a@web.de>2013-05-04 02:22:38 +0200
commit3aa36a85680d85e063c9b1f776300bada69cb79f (patch)
treef5b3f6afcc09f6e8af8ce6970c746fb1bffb4b93 /lib/pure/httpclient.nim
parent0991706d55dabad35f33f7d048ce1b018f6c5b2d (diff)
downloadNim-3aa36a85680d85e063c9b1f776300bada69cb79f.tar.gz
bugfixes
Diffstat (limited to 'lib/pure/httpclient.nim')
-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 ab6cb04a9..15cc6abb8 100644
--- a/lib/pure/httpclient.nim
+++ b/lib/pure/httpclient.nim
@@ -264,10 +264,10 @@ proc request*(url: string, httpMethod = httpGET, extraHeaders = "",
   if r.scheme == "https":
     when defined(ssl):
       sslContext.wrapSocket(s)
+      port = TPort(443)
     else:
       raise newException(EHttpRequestErr,
                 "SSL support is not available. Cannot connect over SSL.")
-    port = TPort(443)
   if r.port != "":
     port = TPort(r.port.parseInt)