Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit e804a4a

Browse files
authored
Merge pull request #1127 from aerogear/WEBPUSH-UTF8
fix: 🐛 webpush messages were not UTF-8 encoded
2 parents a522af7 + 716c243 commit e804a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • push-sender/src/main/java/org/jboss/aerogear/unifiedpush/message/webpush

push-sender/src/main/java/org/jboss/aerogear/unifiedpush/message/webpush/WebPushSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void sendPushMessage(final Variant variant, final Collection<String> toke
100100

101101
try {
102102
final Notification notification = new Notification(registration.getEndpoint(), getUserPublicKey(registration),
103-
registration.getAuthAsBytes(), gson.toJson(pushMessage.getMessage()).getBytes());
103+
registration.getAuthAsBytes(), gson.toJson(pushMessage.getMessage()).getBytes("UTF-8"));
104104

105105
final HttpResponse response = webPushService.send(notification);
106106
final int responseCode = response.getStatusLine().getStatusCode();

0 commit comments

Comments
 (0)