summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-07-01 19:17:40 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-07-01 19:17:40 -0700
commita369c84cf9f747252dc90a0fd108909b60b3f30d (patch)
treef8a12c02463cb3bfd254746e0bb368e10192ed8e
parenta8c38bda8d5ffe4c579606d10aefd5f65d957366 (diff)
downloadsendgrid-nodejs-a369c84cf9f747252dc90a0fd108909b60b3f30d.zip
sendgrid-nodejs-a369c84cf9f747252dc90a0fd108909b60b3f30d.tar.gz
sendgrid-nodejs-a369c84cf9f747252dc90a0fd108909b60b3f30d.tar.bz2
Version Bump v3.0.6: Accept Headerv3.0.6
-rw-r--r--CHANGELOG.md4
-rw-r--r--README.md2
-rw-r--r--lib/sendgrid.js1
-rw-r--r--package.json2
4 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2b99333..17c9428 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.
+## [3.0.6] - 2016-07-01
+### Fixed
+- GET suppression/bounces needs header to be Accept: application/json
+
## [3.0.5] - 2016-06-14
### Fixed
- Updated dependency on https://github.com/sendgrid/nodejs-http-client
diff --git a/README.md b/README.md
index c765e8e..d1bc9b8 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ Add the following to your `package.json` file:
...
"dependencies": {
...
- "sendgrid": "^3.0.5"
+ "sendgrid": "^3.0.6"
}
}
```
diff --git a/lib/sendgrid.js b/lib/sendgrid.js
index 8155db8..13d783d 100644
--- a/lib/sendgrid.js
+++ b/lib/sendgrid.js
@@ -9,6 +9,7 @@ function SendGrid (apiKey, host, globalHeaders) {
globalRequest.host = host || "api.sendgrid.com";
globalRequest.headers['Authorization'] = 'Bearer '.concat(apiKey)
globalRequest.headers['User-Agent'] = 'sendgrid/' + package_json.version + ';nodejs'
+ globalRequest.headers['Accept'] = 'application/json'
if (globalHeaders) {
for (var obj in globalHeaders) {
for (var key in globalHeaders[obj] ) {
diff --git a/package.json b/package.json
index 6ff3ba6..f7ad2e7 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
],
"name": "sendgrid",
"description": "Official SendGrid NodeJS library.",
- "version": "3.0.5",
+ "version": "3.0.6",
"homepage": "https://sendgrid.com",
"repository": {
"type": "git",