From b9d0b1667404ec72162bfd65ae9a89c68ad8871e Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Fri, 3 Feb 2017 12:17:41 -0300 Subject: [PATCH] fix request headers --- lib/pushnotificationsservice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pushnotificationsservice.js b/lib/pushnotificationsservice.js index 493689f..badd855 100644 --- a/lib/pushnotificationsservice.js +++ b/lib/pushnotificationsservice.js @@ -370,7 +370,7 @@ PushNotificationsService.prototype._makeRequest = function(opts, cb) { url: self.pushServerUrl + '/send', method: 'POST', json: true, - header: { + headers: { 'Content-Type': 'application/json', 'Authorization': 'key=' + self.authorizationKey, },