Skip to content

Commit 87fc0d8

Browse files
committed
Merge branch 'bug/crypto'
2 parents af2070d + e02be4c commit 87fc0d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pywebpush/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def webpush(subscription_info,
353353
vv = Vapid.from_file(
354354
private_key_file=vapid_private_key) # pragma no cover
355355
else:
356-
vv = Vapid.from_raw(private_raw=vapid_private_key.encode())
356+
vv = Vapid.from_string(private_key=vapid_private_key)
357357
vapid_headers = vv.sign(vapid_claims)
358358
result = WebPusher(subscription_info).send(
359359
data,

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cryptography>=1.8.1,<1.10
1+
cryptography>=1.8.1
22
http-ece>=1.0.1
33
requests>=2.13.0
4-
py-vapid>=1.2.5
4+
py-vapid>=1.3.0

0 commit comments

Comments
 (0)