mailgun-js
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -285,3 +285,4 @@ var https = require('https'); | ||
var skipContentTypeCheck = res.req && res.req.path && res.req.path.match(/\/campaigns/); | ||
if (chunks && !error && (skipContentTypeCheck || (res.headers['content-type'].indexOf('application/json') >= 0))) { | ||
var isJSON = res.headers['content-type'] && res.headers['content-type'].indexOf('application/json') >= 0; | ||
if (chunks && !error && (skipContentTypeCheck || isJSON)) { | ||
try { | ||
@@ -288,0 +289,0 @@ body = JSON.parse(chunks); |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"homepage": "https://github.com/bojand/mailgun-js", | ||
@@ -11,0 +11,0 @@ "license": "MIT", |
@@ -86,3 +86,3 @@ # mailgun.js | ||
* `apiKey` - Your Mailgun API KEY | ||
* `domain` - Your Mailgun Domain | ||
* `domain` - Your Mailgun Domain (Please note: domain field is MY-DOMAIN-NAME.com, not https://api.mailgun.net/v3/MY-DOMAIN-NAME.com) | ||
* `mute` - Set to `true` if you wish to mute the console error logs in `validateWebhook()` function | ||
@@ -89,0 +89,0 @@ * `proxy` - The proxy URI in format `http[s]://[auth@]host:port`. ex: `'http://proxy.example.com:8080'` |
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
109020
2436