Skip to content

Commit

Permalink
Version Bump v3.0.6: Accept Header
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious committed Jul 2, 2016
1 parent a8c38bd commit a369c84
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Add the following to your `package.json` file:
...
"dependencies": {
...
"sendgrid": "^3.0.5"
"sendgrid": "^3.0.6"
}
}
```
Expand Down
1 change: 1 addition & 0 deletions lib/sendgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] ) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a369c84

Please sign in to comment.