Skip to content

Commit

Permalink
Merge pull request #291 from Juneil/master
Browse files Browse the repository at this point in the history
let the possibility to set the Host header
  • Loading branch information
theturtle32 authored Oct 18, 2017
2 parents 48468fc + 7a30e39 commit 662f8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebSocketClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ WebSocketClient.prototype.connect = function(requestUrl, protocols, origin, head
'Connection': 'Upgrade',
'Sec-WebSocket-Version': this.config.webSocketVersion.toString(10),
'Sec-WebSocket-Key': this.base64nonce,
'Host': hostHeaderValue
'Host': reqHeaders.Host || hostHeaderValue
});

if (this.protocols.length > 0) {
Expand Down

0 comments on commit 662f8cc

Please # to comment.