Skip to content

Commit

Permalink
[fix] support target and forward
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Nov 8, 2013
1 parent bbe3bfd commit 961d2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/passes/web-incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ web_o = Object.keys(web_o).map(function(pass) {
common.setupOutgoing(options.ssl || {}, options, req, 'forward')
);
(options.buffer || req).pipe(forwardReq);
return res.end();
if(!options.target) { return res.end(); }
}

// Request initalization
Expand Down

1 comment on commit 961d2f9

@indexzero
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Please sign in to comment.