Browse Source

Update websocket.cpp

web2098 2 years ago
parent
commit
617d0f784f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/impl/websocket.cpp

+ 2 - 1
src/impl/websocket.cpp

@@ -51,8 +51,9 @@ void WebSocket::open(const string &url) {
 	if (config.proxyServer) {		
 		if( config.proxyServer->type == ProxyServer::Type::Socks5)
 			throw std::invalid_argument("Proxy server support for WebSocket is not implemented for Socks5");
-		if (config.proxyServer->username || config.proxyServer->password)
+		if (config.proxyServer->username || config.proxyServer->password) {
 			PLOG_WARNING << "HTTP authentication support for proxy is not implemented";
+		}
 	}
 
 	// Modified regex from RFC 3986, see https://www.rfc-editor.org/rfc/rfc3986.html#appendix-B