aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-18 02:27:40 +0300
committerGravatar Vitaly Takmazov2017-10-18 02:27:40 +0300
commit14b8e6b8fffdd6dac1467c1aed40c2f029564bf1 (patch)
tree3c47f4579e7d55bc3d61b581c72af8ac8d4b191b /juick-notifications/src/main/java/com/juick
parent6632a1d0828ed1bb73b19b8f61153b746240dc94 (diff)
notifications: add missing MPNS header
Diffstat (limited to 'juick-notifications/src/main/java/com/juick')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/MPNSClient.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/MPNSClient.java b/juick-notifications/src/main/java/com/juick/components/MPNSClient.java
index 035d9eb2..0cbbd1e4 100644
--- a/juick-notifications/src/main/java/com/juick/components/MPNSClient.java
+++ b/juick-notifications/src/main/java/com/juick/components/MPNSClient.java
@@ -41,6 +41,7 @@ public class MPNSClient {
httpHeaders.add("client_id", applicationSip);
httpHeaders.add("client_secret", applicationSecret);
httpHeaders.add("scope", "notify.windows.com");
+ httpHeaders.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
HttpEntity<String> entity = new HttpEntity<>(httpHeaders);
ResponseEntity<String> response = restService.getRest().exchange(url, HttpMethod.POST, entity, String.class);
String responseBody = response.getBody();