Skip to content

Commit 5f31d7e

Browse files
author
Sam Wierema
committed
Remove the fauly colon from from the Content-Type header
It was throwing an error for some versions of Java. I don't know which or how, but at least it's correct now.
1 parent cf2ca0e commit 5f31d7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/main/java/com/messagebird/MessageBirdServiceImpl.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ public <P> HttpURLConnection getConnection(final String serviceUrl, final P post
186186
// could have just used rquestType as it is
187187
connection.setDoOutput(false);
188188
connection.setRequestMethod("DELETE");
189-
connection.setRequestProperty("Content-Type:", "application/text");
189+
connection.setRequestProperty("Content-Type", "application/text");
190190
} else {
191191
connection.setDoOutput(false);
192192
connection.setRequestMethod("GET");
193-
connection.setRequestProperty("Content-Type:", "application/text");
193+
connection.setRequestProperty("Content-Type", "application/text");
194194
}
195195

196196
return connection;

0 commit comments

Comments
 (0)