Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit aa81418

Browse files
author
OpenShift Bot
authored
Merge pull request #6444 from PatrykGala/auth_header
Merged by openshift-bot
2 parents e77b165 + 05c318a commit aa81418

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

node-proxy/lib/proxy/ProxyServer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ function finish_websocket(upg_reqhost, proxy_server, ws) {
478478
if (upgrade_req.headers["origin"]) {
479479
zheaders.headers["Origin"] = upgrade_req.headers["origin"];
480480
}
481+
482+
if (upgrade_req.headers["authorization"]) {
483+
zheaders.headers["Authorization"] = upgrade_req.headers["authorization"];
484+
}
481485

482486
/* Create a proxy websocket request we need to send. */
483487
var proxy_ws = new WebSocket('ws://' + ws_endpoint + upg_requri, zheaders);

0 commit comments

Comments
 (0)