From eee67fe7ba93a253a31ac76be229c0ed28684a76 Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Fri, 22 May 2020 10:25:01 -0700 Subject: [PATCH] Updated to support needle 2.5.0. Fixes error 'Error: Invalid property for defaults:rejectUnauthorized' when running tests. --- lib/HttpRequest.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/HttpRequest.js b/lib/HttpRequest.js index e8ebc08..3cb5786 100644 --- a/lib/HttpRequest.js +++ b/lib/HttpRequest.js @@ -8,8 +8,7 @@ needle.defaults({ parse_response: false, decode_response: true, follow_set_cookies: true, - follow_set_referer: true, - rejectUnauthorized: false + follow_set_referer: true }) function HttpRequest(window, url, callback) { @@ -32,7 +31,8 @@ function HttpRequest(window, url, callback) { referer: url.referer||window.location.href, }, cookies: window.document.cookies, - accept: url.accept + accept: url.accept, + rejectUnauthorized: false } window.__stackPush(); diff --git a/package.json b/package.json index e45e292..78c32cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "libxmljs-dom", - "version": "0.0.17", + "version": "0.0.18", "description": "DOM wrapper for libxmljs", "keywords": [ "dom",