diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-10 20:05:53 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-10 20:05:53 -0700 |
commit | 1313e7e8bfbf35994b79b6b7a1bb84cb40c4f328 (patch) | |
tree | 99b0c78a0a96d4d39185407406bff3ef8b485db0 | |
parent | b80099273fd67c69973dafe60076cf02d7f78734 (diff) | |
download | sendgrid-nodejs-1313e7e8bfbf35994b79b6b7a1bb84cb40c4f328.zip sendgrid-nodejs-1313e7e8bfbf35994b79b6b7a1bb84cb40c4f328.tar.gz sendgrid-nodejs-1313e7e8bfbf35994b79b6b7a1bb84cb40c4f328.tar.bz2 |
Updated dependency, Content-Type now set automatically
-rw-r--r-- | lib/sendgrid.js | 1 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index 38ab63e..73899ae 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -7,7 +7,6 @@ function SendGrid (apiKey, host, globalHeaders) { var Client = require('sendgrid-rest').Client var globalRequest = JSON.parse(JSON.stringify(require('sendgrid-rest').emptyRequest)); globalRequest.host = host || "api.sendgrid.com"; - globalRequest.headers['Content-Type'] = 'application/json' globalRequest.headers['Authorization'] = 'Bearer '.concat(apiKey) globalRequest.headers['User-Agent'] = 'sendgrid/' + package_json.version + ';nodejs' if (globalHeaders) { diff --git a/package.json b/package.json index 043d889..01f19cf 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "node": ">= 0.4.7" }, "dependencies": { - "sendgrid-rest": "^2.1.0" + "sendgrid-rest": "^2.2.0" }, "devDependencies": { "chai": "^3.5.0", |