Skip to content

Commit 3f1e2c0

Browse files
committed
added support for TLSv1.1 and TLSv1.2 to Context
2 parents 16ef87e + 4e7ffca commit 3f1e2c0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Net/samples/WebSocketServer/src/WebSocketServer.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class RequestHandlerFactory: public HTTPRequestHandlerFactory
163163
app.logger().information(it->first + ": " + it->second);
164164
}
165165

166-
if (request.getURI() == "/ws")
166+
if(request.find("Upgrade") != request.end() && request["Upgrade"] == "websocket")
167167
return new WebSocketRequestHandler;
168168
else
169169
return new PageRequestHandler;

‎NetSSL_OpenSSL/src/Context.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ void Context::createSSLContext()
340340
break;
341341
#endif
342342
default:
343-
throw Poco::InvalidArgumentException("Invalid usage");
343+
throw Poco::InvalidArgumentException("Invalid or unsupported usage");
344344
}
345345
}
346346
if (!_pSSLContext)

0 commit comments

Comments
 (0)