diff options
-rw-r--r-- | lib/sendgrid.js | 2 | ||||
-rw-r--r-- | test/lib/sendgrid.test.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index 63c52e6..085085d 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -37,7 +37,7 @@ var Sendgrid = function(api_user, api_key, options) { var _send = function(email, callback) { var postOptions = { method : 'POST', - uri : "https://sendgrid.com/api/mail.send.json" + uri : "https://api.sendgrid.com/api/mail.send.json" }; var options = _.merge(this.options, postOptions); diff --git a/test/lib/sendgrid.test.js b/test/lib/sendgrid.test.js index e4e416d..8e3e796 100644 --- a/test/lib/sendgrid.test.js +++ b/test/lib/sendgrid.test.js @@ -34,7 +34,7 @@ describe('SendGrid', function () { beforeEach(function() { payload = Object.create(default_payload); - webApi = nock('https://sendgrid.com') + webApi = nock('https://api.sendgrid.com') .filteringRequestBody(function(path) { postParamsString = path; return '*'; |