Open jfsimon opened 5 years ago
The compressed and rejectUnauthorized options are not allowed in needle.defaults. They're respectively HttpHeader (https://github.com/tomas/needle#http-header-options) and HttpRequest (https://github.com/tomas/needle#nodejs-tls-options) options.
compressed
rejectUnauthorized
needle.defaults
HttpHeader
HttpRequest
Since v2.3.1, needle throws an error because of these 2 options (https://github.com/tomas/needle/blob/master/lib/needle.js#L775), I guess they were just noop before that. Unit tests are failing with latest version of needle without this patch.
v2.3.1
needle
@rchipka I just ran into this as well. Is there anything blocking this? It would be great to get this merged :slightly_smiling_face:
The
compressed
andrejectUnauthorized
options are not allowed inneedle.defaults
. They're respectivelyHttpHeader
(https://github.com/tomas/needle#http-header-options) andHttpRequest
(https://github.com/tomas/needle#nodejs-tls-options) options.Since
v2.3.1
, needle throws an error because of these 2 options (https://github.com/tomas/needle/blob/master/lib/needle.js#L775), I guess they were just noop before that. Unit tests are failing with latest version ofneedle
without this patch.