Enable SSL support in HttpServer

This commit is contained in:
Alex Hultman
2018-09-30 23:13:05 +02:00
parent ecfeffed7b
commit b89699607a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ int main(int argc, char **argv) {
if (memcmp(&ssl_options, &empty_ssl_options, sizeof(empty_ssl_options))) {
/* HTTPS */
uWS::SSLApp(ssl_options).get("/*", [&asyncFileStreamer](auto *res, auto *req) {
//asyncFileStreamer.streamFile(res, req->getUrl());
asyncFileStreamer.streamFile(res, req->getUrl());
}).listen(port, [port, root](auto *token) {
if (token) {
std::cout << "Serving " << root << " over HTTPS a " << port << std::endl;