When I use "nim c -r -d:ssl myfile.nim" my program works correctly.
When I use "nim c -r -d:ssl,release myfile.nim"
I have this error on client side:
HTTP/1.1 502 Bad Gateway
Content-Length: 1738
Content-Type: text/html
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Jester route exception</title></head><body><h1>An error has occured in one of your routes.</h1><p><b>Detail: </b>Traceback (most recent call last)<br/>
photofly_server.nim(90) photofly_server<br/>
asyncdispatch.nim(1540) runForever<br/>
asyncdispatch.nim(983) poll<br/>
asyncdispatch.nim(1091) cb<br/>
asyncdispatch.nim(186) complete<br/>
asyncdispatch.nim(1199) cb<br/>
os.nim(1596) recvLineIntoIter<br/>
asyncdispatch.nim(195) complete<br/>
asyncdispatch.nim(1204) cb<br/>
asyncdispatch.nim(224) callback=<br/>
asyncdispatch.nim(1204) cb<br/>
asyncdispatch.nim(224) callback=<br/>
asyncdispatch.nim(1204) cb<br/>
asyncdispatch.nim(224) callback=<br/>
asyncdispatch.nim(1204) cb<br/>
asyncdispatch.nim(224) callback=<br/>
asyncdispatch.nim(1204) cb<br/>
asyncdispatch.nim(224) callback=<br/>
asyncdispatch.nim(1204) cb<br/>
asyncdispatch.nim(224) callback=<br/>
asyncdispatch.nim(1204) cb<br/>
asyncdispatch.nim(224) callback=<br/>
asyncdispatch.nim(1199) cb<br/>
asynchttpserver.nim(222) processClientIter<br/>
jester.nim(328) :anonymous<br/>
jester.nim(299) handleHTTPRequest<br/>
asyncdispatch.nim(1212) handleRequest<br/>
asyncdispatch.nim(1199) cb<br/>
jester.nim(263) handleRequestIter<br/>
asyncdispatch.nim(1212) match<br/>
asyncdispatch.nim(1199) cb<br/>
photofly_server.nim(35) matchIter<br/>
letters.nim(123) newPLetter<br/>
certs.nim(23) isValid<br/>
httpclient.nim(491) getContent<br/>
httpclient.nim(472) get<br/>
httpclient.nim(445) request<br/>
httpclient.nim(422) request<br/>
SSL support is not available. Cannot connect over SSL.</p></body></html>
Whe I use "nim c -r -d:release myfile.nim"
I have this on client side:
/1.1 502 Bad Gateway
Content-Length: 241
Content-Type: text/html
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Jester route exception</title></head><body><h1>An error has occured in one of your routes.</h1><p><b>Detail: </b>SSL support is not available. Cannot connect over SSL.</p></body></html>
How to get SSL support working?
My program crashes when I try to use getContent procedure from httpclient with https address as parameter
Ooops, it was my another stupid question.
I tried "nim c -r -d:ssl -d:release myfile.nim" and it works now.
Previous commands made debug builds, I have no idea, why.