bugfixes
This commit is contained in:
parent
0991706d55
commit
3aa36a8568
4 changed files with 19 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue