From f477be8a17eb84b206bbbd3b0e69faf62aaccdc2 Mon Sep 17 00:00:00 2001 From: Oemer Yildiz Date: Wed, 4 Nov 2015 14:58:13 +0100 Subject: [PATCH] fix accept header --- api/src/main/java/com/messagebird/MessageBirdServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/com/messagebird/MessageBirdServiceImpl.java b/api/src/main/java/com/messagebird/MessageBirdServiceImpl.java index d7f37104..5fc69650 100644 --- a/api/src/main/java/com/messagebird/MessageBirdServiceImpl.java +++ b/api/src/main/java/com/messagebird/MessageBirdServiceImpl.java @@ -153,7 +153,7 @@ public

HttpURLConnection getConnection(final String serviceUrl, final P post connection = (HttpURLConnection) restService.openConnection(); } connection.setDoInput(true); - connection.setRequestProperty("Accepts:", "application/json"); + connection.setRequestProperty("Accept", "application/json"); connection.setUseCaches(false); connection.setRequestProperty("charset", "utf-8"); connection.setRequestProperty("Connection", "close");