Skip to content

Commit 8a9df49

Browse files
authored
Update WebSocketClient.java
Typo fixed
1 parent cb907bf commit 8a9df49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/java_websocket/client/WebSocketClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,9 @@ private void sendHandshake() throws InvalidHandshakeException {
435435
path += '?' + part2;
436436
int port = getPort();
437437
String host = uri.getHost() + (
438-
(port != WebSocket.DEFAULT_PORT && port != WbSocket.DEFAULT_WSS_PORT)
439-
? ":" + port : "" );
438+
(port != WebSocket.DEFAULT_PORT && port != WebSocket.DEFAULT_WSS_PORT)
439+
? ":" + port
440+
: "" );
440441

441442
HandshakeImpl1Client handshake = new HandshakeImpl1Client();
442443
handshake.setResourceDescriptor( path );

0 commit comments

Comments
 (0)