From a369c84cf9f747252dc90a0fd108909b60b3f30d Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Fri, 1 Jul 2016 19:17:40 -0700 Subject: [PATCH] Version Bump v3.0.6: Accept Header --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/sendgrid.js | 1 + package.json | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b9933308..17c942898 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 c765e8e03..d1bc9b877 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 8155db88a..13d783d12 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 6ff3ba666..f7ad2e7ec 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",