mirror of https://github.com/node-red/node-red.git
Do not throw HTTP errors in request node
Fixes #3082 GOT will throw errors for non-successful http responses by default. We need to turn that off to be consistent with the 1.x behaviour using the request modulepull/3085/head
parent
7b106e5650
commit
5f6fcb2bc0
|
@ -151,6 +151,7 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
|||
// Had to remove this to get http->https redirect to work
|
||||
// opts.defaultPort = isHttps?443:80;
|
||||
opts.timeout = node.reqTimeout;
|
||||
opts.throwHttpErrors = false;
|
||||
opts.method = method;
|
||||
opts.headers = {};
|
||||
opts.retry = 0;
|
||||
|
|
Loading…
Reference in New Issue