Skip to content

Commit

Permalink
Update common.js
Browse files Browse the repository at this point in the history
Add method parameter to options for overriding the proxy-outgoing HTTP-method
  • Loading branch information
AydinChavez authored and indexzero committed Apr 20, 2018
1 parent 107c187 commit c5d8466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
function(e) { outgoing[e] = options[forward || 'target'][e]; }
);

outgoing.method = req.method;
outgoing.method = options.method || req.method;
outgoing.headers = extend({}, req.headers);

if (options.headers){
Expand Down

0 comments on commit c5d8466

Please sign in to comment.