aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-notifications/src/main')
-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 035d9eb24..0cbbd1e4a 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();