Skip to content

Commit

Permalink
Keep port number in the host websocket request header for port 443
Browse files Browse the repository at this point in the history
Signed-off-by: Roshan Kumar <roskumr@amazon.com>
  • Loading branch information
desokroshan committed Sep 20, 2019
1 parent 7918dc9 commit accb989
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -99,7 +99,7 @@ private void sendHandshakeRequest(String key) throws IOException{

PrintWriter pw = new PrintWriter(output);
pw.print("GET " + path + " HTTP/1.1" + LINE_SEPARATOR);
if (port != 80 && port != 443) {
if (port != 80) {
pw.print("Host: " + host + ":" + port + LINE_SEPARATOR);
}
else {
Expand Down

0 comments on commit accb989

Please sign in to comment.