Skip to content

fix invalid needle defaults error#11

Open
jfsimon wants to merge 2 commits into
libxmljs:masterfrom
jfsimon:master
Open

fix invalid needle defaults error#11
jfsimon wants to merge 2 commits into
libxmljs:masterfrom
jfsimon:master

Conversation

@jfsimon

@jfsimon jfsimon commented May 7, 2019

Copy link
Copy Markdown

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.

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.

@czosel

czosel commented Feb 4, 2020

Copy link
Copy Markdown

@rchipka I just ran into this as well. Is there anything blocking this? It would be great to get this merged 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants