We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1669b63 + 0e45014 commit a0f3edfCopy full SHA for a0f3edf
src/xyz/pushpad/Notification.java
@@ -99,7 +99,9 @@ private JSONObject deliver(String reqBody) throws DeliveryException {
99
100
// Send request
101
DataOutputStream wr = new DataOutputStream(connection.getOutputStream());
102
- wr.writeBytes(reqBody);
+ BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(wr, "UTF-8"));
103
+ writer.write(reqBody);
104
+ writer.close();
105
wr.close();
106
107
// Get Response
0 commit comments