Skip to content

Commit c998e20

Browse files
authored
Merge pull request #267 from firefligher/master
Replaced hostname with host
2 parents 0e1686b + e69c2bc commit c998e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web-push-lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ WebPushLib.prototype.generateRequestDetails =
205205
} else if (currentVapidDetails) {
206206
const parsedUrl = url.parse(subscription.endpoint);
207207
const audience = parsedUrl.protocol + '//' +
208-
parsedUrl.hostname;
208+
parsedUrl.host;
209209

210210
const vapidHeaders = vapidHelper.getVapidHeaders(
211211
audience,

0 commit comments

Comments
 (0)