Skip to content

Commit 1a2e565

Browse files
authored
Merge pull request #19 from web-push-libs/feat/18
feat: Update requirements to latest version.
2 parents c4fadb2 + 4d1497d commit 1a2e565

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pywebpush/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def send(self, data, headers={}, ttl=0, gcm_key=None, reg_id=None):
206206
endpoint = self.subscription_info['endpoint']
207207

208208
if 'ttl' not in headers or ttl:
209-
headers['ttl'] = ttl
209+
headers['ttl'] = str(ttl)
210210
# Additionally useful headers:
211211
# Authorization / Crypto-Key (VAPID headers)
212212
return self._post(endpoint, encoded_data, headers)

pywebpush/tests/test_webpush.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_send(self, mock_post):
102102
WebPusher(subscription_info).send(data, headers)
103103
eq_(subscription_info.get('endpoint'), mock_post.call_args[0][0])
104104
pheaders = mock_post.call_args[1].get('headers')
105-
eq_(pheaders.get('ttl'), 0)
105+
eq_(pheaders.get('ttl'), "0")
106106
ok_('encryption' in pheaders)
107107
eq_(pheaders.get('AUTHENTICATION'), headers.get('Authentication'))
108108
ckey = pheaders.get('crypto-key')

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
http-ece==0.5.0
2-
python-jose==0.5.6
3-
requests==2.9.1
2+
python-jose==1.2.0
3+
requests==2.11.*
44
flake8

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from setuptools import find_packages, setup
55

6-
__version__ = "0.5.0"
6+
__version__ = "0.6.0"
77

88

99
def read_from(file):

0 commit comments

Comments
 (0)