mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
bugfixes
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user