We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c08be4e + 8a9df49 commit ed73b32Copy full SHA for ed73b32
src/main/java/org/java_websocket/client/WebSocketClient.java
@@ -434,7 +434,10 @@ private void sendHandshake() throws InvalidHandshakeException {
434
if( part2 != null )
435
path += '?' + part2;
436
int port = getPort();
437
- String host = uri.getHost() + ( port != WebSocket.DEFAULT_PORT ? ":" + port : "" );
+ String host = uri.getHost() + (
438
+ (port != WebSocket.DEFAULT_PORT && port != WebSocket.DEFAULT_WSS_PORT)
439
+ ? ":" + port
440
+ : "" );
441
442
HandshakeImpl1Client handshake = new HandshakeImpl1Client();
443
handshake.setResourceDescriptor( path );
0 commit comments