diff --git a/pywebpush/__init__.py b/pywebpush/__init__.py index 22c1038..3312745 100644 --- a/pywebpush/__init__.py +++ b/pywebpush/__init__.py @@ -295,9 +295,9 @@ class WebPusher: if curl: return self.as_curl(endpoint, encoded_data, headers) return self.requests_method.post(endpoint, - data=encoded_data, - headers=headers, - timeout=timeout) + data=encoded_data, + headers=headers, + timeout=timeout) def webpush(subscription_info, diff --git a/pywebpush/tests/test_webpush.py b/pywebpush/tests/test_webpush.py index 2a2cdd4..136f749 100644 --- a/pywebpush/tests/test_webpush.py +++ b/pywebpush/tests/test_webpush.py @@ -325,8 +325,10 @@ class WebpushTestCase(unittest.TestCase): headers = {"Crypto-Key": "pre-existing", "Authentication": "bearer vapid"} data = "Mary had a little lamb" - WebPusher(subscription_info, requests_session=mock_session).send(data, headers) - eq_(subscription_info.get('endpoint'), mock_session.post.call_args[0][0]) + WebPusher(subscription_info, + requests_session=mock_session).send(data, headers) + eq_(subscription_info.get('endpoint'), + mock_session.post.call_args[0][0]) pheaders = mock_session.post.call_args[1].get('headers') eq_(pheaders.get('ttl'), '0') ok_('encryption' in pheaders)