register_server: POST requests take data, not params.

This currently _works_, but only because we are very forgiving about
how we parse requests.
This commit is contained in:
Alex Vandiver
2023-12-12 22:34:10 -05:00
committed by Tim Abbott
parent aebafcc43f
commit 44e9171a46

View File

@@ -124,7 +124,7 @@ class Command(ZulipBaseCommand):
registration_url = settings.PUSH_NOTIFICATION_BOUNCER_URL + url
session = PushBouncerSession()
try:
response = session.post(registration_url, params=params)
response = session.post(registration_url, data=params)
except requests.RequestException:
raise CommandError(
"Network error connecting to push notifications service "