Comparing version 0.7.1 to 0.7.2
@@ -125,3 +125,3 @@ /** | ||
// checking to make sure it's json from api | ||
if( res.headers[ 'content-type' ].split( ';' )[ 0 ].toLowerCase() !== 'application/json' ) { | ||
if( !res.headers[ 'content-type' ] || res.headers[ 'content-type' ].split( ';' )[ 0 ].toLowerCase() !== 'application/json' ) { | ||
helpers.deliverResponse( 'error', new Error( 'API did not return JSON' ), callback, 'Fuel REST' ); | ||
@@ -128,0 +128,0 @@ return; |
{ | ||
"name": "fuel-rest", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Node Library for performing REST API calls with ExactTarget Fuel.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/fuel-rest.js", |
@@ -74,2 +74,3 @@ Fuel REST Client (for Node.js) [![Build Status](https://travis-ci.org/ExactTarget/Fuel-Node-REST.svg?branch=master)](https://travis-ci.org/ExactTarget/Fuel-Node-REST) | ||
* **0.7.2** - 2014-10-16 - account for content-type header not being present on API response | ||
* **0.7.1** - 2014-09-09 - removed unneeded "!!" | ||
@@ -76,0 +77,0 @@ * **0.7.0** - 2014-08-29 (public release, 1st npm version) |
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
11923
96