Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
webhook: Do not allow None default for headers.
Zixuan James Lia81fab46e30f
diff --git a/corporate/views/webhook.py b/corporate/views/webhook.pyindex 344b9483b88..fd4cddee34a 100644--- a/corporate/views/webhook.py+++ b/corporate/views/webhook.py@@ -29,7 +29,7 @@ def stripe_webhook(request: HttpRequest) -> HttpResponse:try:stripe_event = stripe.Webhook.construct_event(request.body,- request.headers.get("Stripe-Signature"),+ request.headers["Stripe-Signature"],stripe_webhook_endpoint_secret,)except ValueError: