chain-smoker
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -94,8 +94,10 @@ var request = require('request'); | ||
var body; | ||
var body, jsonSearch; | ||
var jsonRegex = new RegExp("application/json"); | ||
var jsonSearch = res.headers['content-type'].search(/application\/json/); | ||
if (res.headers) { | ||
var jsonRegex = new RegExp("application/json"); | ||
jsonSearch = res.headers['content-type'].search(/application\/json/); | ||
} | ||
if (jsonSearch >= 0) { | ||
if (jsonSearch && jsonSearch >= 0) { | ||
body = JSON.stringify(res.body); | ||
@@ -102,0 +104,0 @@ } else { |
{ | ||
"name": "chain-smoker", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Smokes a suite of tests a day (at least)", | ||
@@ -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
23937
639