We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 107c187 commit c5d8466Copy full SHA for c5d8466
lib/http-proxy/common.js
@@ -39,7 +39,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
39
function(e) { outgoing[e] = options[forward || 'target'][e]; }
40
);
41
42
- outgoing.method = req.method;
+ outgoing.method = options.method || req.method;
43
outgoing.headers = extend({}, req.headers);
44
45
if (options.headers){
0 commit comments