Skip to content

Commit 5559ce1

Browse files
author
Himanshu Kapoor
committed
updated subscription
1 parent 58e9e1a commit 5559ce1

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
@@ -253,7 +253,7 @@ WebPushLib.prototype.sendNotification =
253253
pushResponse.on('end', function() {
254254
if (pushResponse.statusCode !== 201) {
255255
reject(new WebPushError('Received unexpected response code',
256-
pushResponse.statusCode, pushResponse.headers, responseText, endpoint));
256+
pushResponse.statusCode, pushResponse.headers, responseText, subscription.endpoint));
257257
} else {
258258
resolve({
259259
statusCode: pushResponse.statusCode,

0 commit comments

Comments
 (0)