mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Detect/set correct method for http proxy
to close #732 — thanks @utaani
This commit is contained in:
parent
81e125b7ba
commit
8abd0b1fdf
@ -391,6 +391,7 @@ module.exports = function(RED) {
|
|||||||
opts = urllib.parse(prox);
|
opts = urllib.parse(prox);
|
||||||
opts.path = opts.pathname = path;
|
opts.path = opts.pathname = path;
|
||||||
opts.headers = heads;
|
opts.headers = heads;
|
||||||
|
opts.method = method;
|
||||||
//console.log(opts);
|
//console.log(opts);
|
||||||
urltotest = match[0];
|
urltotest = match[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user