Skip to content

Commit c5d8466

Browse files
AydinChavezindexzero
authored andcommitted
Update common.js
Add method parameter to options for overriding the proxy-outgoing HTTP-method
1 parent 107c187 commit c5d8466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/http-proxy/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
3939
function(e) { outgoing[e] = options[forward || 'target'][e]; }
4040
);
4141

42-
outgoing.method = req.method;
42+
outgoing.method = options.method || req.method;
4343
outgoing.headers = extend({}, req.headers);
4444

4545
if (options.headers){

0 commit comments

Comments
 (0)