Skip to content

Commit accb989

Browse files
committed
Keep port number in the host websocket request header for port 443
Signed-off-by: Roshan Kumar <roskumr@amazon.com>
1 parent 7918dc9 commit accb989

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/websocket

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/websocket/WebSocketHandshake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void sendHandshakeRequest(String key) throws IOException{
9999

100100
PrintWriter pw = new PrintWriter(output);
101101
pw.print("GET " + path + " HTTP/1.1" + LINE_SEPARATOR);
102-
if (port != 80 && port != 443) {
102+
if (port != 80) {
103103
pw.print("Host: " + host + ":" + port + LINE_SEPARATOR);
104104
}
105105
else {

0 commit comments

Comments
 (0)