Skip to content

validate data using len #240

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
validate_event_name ensures text
  • Loading branch information
salah93 committed May 26, 2025
commit b51b11698740020c3d05d7e785be840f7272e8b7
2 changes: 1 addition & 1 deletion pusher/pusher_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def trigger_batch(self, batch=[], already_encoded=False):
for event in batch:
validate_channel(event['channel'])

event['name'] = validate_event_name(ensure_text(event['name'], 'event_name'))
event['name'] = validate_event_name(event['name'])
event['data'] = validate_data(event['data'], self._json_encoder)

if is_encrypted_channel(event['channel']):
Expand Down