Update common.js

Add method parameter to options for overriding the proxy-outgoing HTTP-method
This commit is contained in:
Aydin 2018-01-23 12:40:08 +01:00 committed by Charlie Robbins
parent 107c18720c
commit c5d8466483

View File

@ -39,7 +39,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
function(e) { outgoing[e] = options[forward || 'target'][e]; } function(e) { outgoing[e] = options[forward || 'target'][e]; }
); );
outgoing.method = req.method; outgoing.method = options.method || req.method;
outgoing.headers = extend({}, req.headers); outgoing.headers = extend({}, req.headers);
if (options.headers){ if (options.headers){