mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Set decompress to false for HTTP Request to keep 1.x compatibility
Fixes #3083
This commit is contained in:
parent
36e83d628e
commit
775181f761
@ -152,6 +152,8 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
|||||||
// opts.defaultPort = isHttps?443:80;
|
// opts.defaultPort = isHttps?443:80;
|
||||||
opts.timeout = node.reqTimeout;
|
opts.timeout = node.reqTimeout;
|
||||||
opts.throwHttpErrors = false;
|
opts.throwHttpErrors = false;
|
||||||
|
// TODO: add UI option to auto decompress. Setting to false for 1.x compatibility
|
||||||
|
opts.decompress = false;
|
||||||
opts.method = method;
|
opts.method = method;
|
||||||
opts.headers = {};
|
opts.headers = {};
|
||||||
opts.retry = 0;
|
opts.retry = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user