-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow to send the headers parameters to pywebpush #118
base: master
Are you sure you want to change the base?
Conversation
|
||
|
||
def send_notification_to_group(group_name, payload, ttl=0): | ||
def send_notification_to_group(group_name, payload, ttl=0, headers={}): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not good idea to take default mutable value. Can you please change it?
@@ -3,11 +3,11 @@ | |||
from .utils import send_notification_to_group, send_notification_to_user | |||
|
|||
|
|||
def send_group_notification(group_name, payload, ttl=0): | |||
def send_group_notification(group_name, payload, ttl=0, headers={}): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well
Thanks for the PR. Can you make the changes for mutable default value so we can merge it? |
any updates on merging this? |
pywebpush
updated using>=
(Latest versions of pywebpush receive headers parameters).django-webpush
functions, empty dict by default.