http-browserify
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -103,3 +103,3 @@ var Stream = require('stream'); | ||
if (!headerName) return false; | ||
return (Request.unsafeHeaders.indexOf(headerName.toLowerCase()) === -1) | ||
return indexOf(Request.unsafeHeaders, headerName.toLowerCase()) === -1; | ||
}; | ||
@@ -116,1 +116,9 @@ | ||
}; | ||
var indexOf = function (xs, x) { | ||
if (xs.indexOf) return xs.indexOf(x); | ||
for (var i = 0; i < xs.length; i++) { | ||
if (xs[i] === x) return i; | ||
} | ||
return -1; | ||
}; |
@@ -47,3 +47,3 @@ var Stream = require('stream'); | ||
Response.prototype.getResponse = function (xhr) { | ||
var respType = xhr.responseType.toLowerCase(); | ||
var respType = String(xhr.responseType).toLowerCase(); | ||
if (respType === 'blob') return xhr.responseBlob; | ||
@@ -50,0 +50,0 @@ if (respType === 'arraybuffer') return xhr.response; |
{ | ||
"name" : "http-browserify", | ||
"version" : "0.1.5", | ||
"version" : "0.1.6", | ||
"description" : "http module compatability for browserify", | ||
@@ -5,0 +5,0 @@ "main" : "index.js", |
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
15085
371