diff options
author | Eddie Zaneski <eddiezane@gmail.com> | 2014-07-15 20:28:37 -0400 |
---|---|---|
committer | Eddie Zaneski <eddiezane@gmail.com> | 2014-07-15 20:28:37 -0400 |
commit | c265692e230570afd562fe8a39c87d9984856957 (patch) | |
tree | 9094f58538d5eb1fd139d601cd7491270b74a117 /lib/sendgrid.js | |
parent | 86905186b76dd300d3db5b14ab054fe65b509496 (diff) | |
download | sendgrid-nodejs-c265692e230570afd562fe8a39c87d9984856957.zip sendgrid-nodejs-c265692e230570afd562fe8a39c87d9984856957.tar.gz sendgrid-nodejs-c265692e230570afd562fe8a39c87d9984856957.tar.bz2 |
Add useragent
Diffstat (limited to 'lib/sendgrid.js')
-rw-r--r-- | lib/sendgrid.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index 4a41e4d..b7a17de 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -38,7 +38,10 @@ var Sendgrid = function(api_user, api_key, options) { var _send = function(email, callback) { var postOptions = { - method : 'POST' + method : 'POST', + headers : { + 'User-Agent': 'sendgrid/' + package_json.version + ';nodejs' + } }; var options = _.merge(postOptions, this.options); |