1
0
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:
Nick O'Leary 2021-07-23 08:57:44 +01:00
parent 36e83d628e
commit 775181f761
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -152,6 +152,8 @@ in your Node-RED user directory (${RED.settings.userDir}).
// opts.defaultPort = isHttps?443:80;
opts.timeout = node.reqTimeout;
opts.throwHttpErrors = false;
// TODO: add UI option to auto decompress. Setting to false for 1.x compatibility
opts.decompress = false;
opts.method = method;
opts.headers = {};
opts.retry = 0;