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 jcrugzz committed Apr 19, 2018
1 parent 4269f88 commit 528a688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/common.js
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 528a688

Please sign in to comment.