diff options
Diffstat (limited to 'juick-notifications/src/main/java')
-rw-r--r-- | juick-notifications/src/main/java/com/juick/components/MPNSClient.java | 1 |
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(); |