Skip to content

Commit cca54ea

Browse files
committed
Merge pull request #12 from messagebird/wrong-content-type
Set the Content-Type header to text/plain for GET, DELETE requests
2 parents 10b891b + 90e2099 commit cca54ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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", "text/plain");
190190
} else {
191191
connection.setDoOutput(false);
192192
connection.setRequestMethod("GET");
193-
connection.setRequestProperty("Content-Type", "application/text");
193+
connection.setRequestProperty("Content-Type", "text/plain");
194194
}
195195

196196
return connection;

0 commit comments

Comments
 (0)