Skip to content

Commit 12233ba

Browse files
pinarxmarco-c
authored andcommitted
Remove the FCM endpoint modification for AES_128_GCM content encoding (#395)
Since now the fcm/send/ endpoint supports AES_128_GCM.
1 parent 5f9fb6b commit 12233ba

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/web-push-lib.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,6 @@ WebPushLib.prototype.generateRequestDetails =
230230
requestDetails.headers.Authorization = 'key=' + currentGCMAPIKey;
231231
}
232232
} else if (currentVapidDetails) {
233-
if (contentEncoding === webPushConstants.supportedContentEncodings.AES_128_GCM
234-
&& subscription.endpoint.indexOf('https://fcm.googleapis.com') === 0) {
235-
subscription.endpoint = subscription.endpoint.replace('fcm/send', 'wp');
236-
}
237233
const parsedUrl = url.parse(subscription.endpoint);
238234
const audience = parsedUrl.protocol + '//' +
239235
parsedUrl.host;

0 commit comments

Comments
 (0)