xmlhttprequest-ssl
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -38,2 +38,4 @@ /** | ||
function XMLHttpRequest(opts) { | ||
"use strict"; | ||
/** | ||
@@ -418,3 +420,3 @@ * Private variables | ||
// Handler for the response | ||
function responseHandler(resp) { | ||
var responseHandler = function(resp) { | ||
// Set response var to the response we got back | ||
@@ -441,9 +443,9 @@ // This is so it remains accessable outside this scope | ||
if (ssl) { | ||
options.pfx = opts.pfx; | ||
options.key = opts.key; | ||
options.passphrase = opts.passphrase; | ||
options.cert = opts.cert; | ||
options.ca = opts.ca; | ||
options.ciphers = opts.ciphers; | ||
options.rejectUnauthorized = opts.rejectUnauthorized; | ||
newOptions.pfx = opts.pfx; | ||
newOptions.key = opts.key; | ||
newOptions.passphrase = opts.passphrase; | ||
newOptions.cert = opts.cert; | ||
newOptions.ca = opts.ca; | ||
newOptions.ciphers = opts.ciphers; | ||
newOptions.rejectUnauthorized = opts.rejectUnauthorized; | ||
} | ||
@@ -488,3 +490,3 @@ | ||
// Error handler for the request | ||
function errorHandler(error) { | ||
var errorHandler = function(error) { | ||
self.handleError(error); | ||
@@ -491,0 +493,0 @@ } |
{ | ||
"name": "xmlhttprequest-ssl", | ||
"description": "XMLHttpRequest for Node", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"author": { | ||
@@ -26,2 +26,5 @@ "name": "Michael de Wit" | ||
}, | ||
"scripts": { | ||
"test": "cd ./tests && node test-constants.js && node test-events.js && node test-exceptions.js && node test-headers.js && node test-redirect-302.js && node test-redirect-303.js && node test-redirect-307.js && node test-request-methods.js && node test-request-protocols.js" | ||
}, | ||
"directories": { | ||
@@ -28,0 +31,0 @@ "lib": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34221
938