Skip to content

Commit

Permalink
improved log for websockets upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Aug 21, 2014
1 parent 669a7e9 commit eb75f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function ReverseProxy(backend, opts){
// WebSocket requests as well.
//
server.on('upgrade', function (req, socket, head) {
log.info({headers: req.headers}, "upgrade to websockets");
var target = getTarget(routing, req);
log.info({headers: req.headers, target: target}, "upgrade to websockets");
if(target){
proxy.ws(req, socket, head, {target: target});
}else{
Expand Down

0 comments on commit eb75f0f

Please sign in to comment.