This commit is contained in:
Araq
2013-05-04 02:22:38 +02:00
parent 0991706d55
commit 3aa36a8568
4 changed files with 19 additions and 3 deletions

View File

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