mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Update common.js
Add method parameter to options for overriding the proxy-outgoing HTTP-method
This commit is contained in:
parent
107c18720c
commit
c5d8466483
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user