zielmicha / reactor.nim

Asynchronous networking engine for Nim
https://networkos.net/nim/reactor.nim/doc/
MIT License
108 stars 6 forks source link

HTTPS issues #12

Open ghost opened 7 years ago

ghost commented 7 years ago

I have a helper proc like this:


import reactor/async, reactor/http/httpclient, reactor/http/httpcommon

proc get*(url: string): Future[void] {.async.} =
  let resp =  await request(newHttpRequest(httpMethod="GET", url = $url).get)
  let data = await resp.dataInput.readUntilEof()
  echo data

get("https://httpbin.org/get").runMain()

But if I try to send an HTTPS request, httpbin.org would answer that this request was an HTTP request, rather than HTTPS.

aguspiza commented 5 years ago

Did you build with -d:ssl ?

ghost commented 5 years ago

@aguspiza I don't remember, it was more than 2 years ago :)