arcgis-parser
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "arcgis-parser", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Parser for ArcGIS REST Services to human friendly JSON.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,7 +20,8 @@ const https = require('https') | ||
// Support both HTTP & HTTPS | ||
var request = (URL.parse(url).protocol === 'https:') ? request = https : request = http; | ||
var request = (URL.parse(url).protocol === 'https:') ? request = https : request = http | ||
return new Promise((resolve, reject) => { | ||
request.get(url, response => { | ||
if (!response.headers['content-type'].match(/application\/json/i)) return reject('content-type must be application/json') | ||
// if (!response.headers['content-type'].match(/application\/json/i)) return reject('content-type must be application/json') | ||
console.log(response.headers) | ||
var data = '' | ||
@@ -27,0 +28,0 @@ response.on('data', chunk => { |
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
18073
484