From 14b8e6b8fffdd6dac1467c1aed40c2f029564bf1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 18 Oct 2017 02:27:40 +0300 Subject: notifications: add missing MPNS header --- juick-notifications/src/main/java/com/juick/components/MPNSClient.java | 1 + 1 file changed, 1 insertion(+) 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 entity = new HttpEntity<>(httpHeaders); ResponseEntity response = restService.getRest().exchange(url, HttpMethod.POST, entity, String.class); String responseBody = response.getBody(); -- cgit v1.2.3