Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_classes: Support multipart/form-data content-type for webhooks.
Niloth P2942a4422425
diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.pyindex 98a7f61dbac..e3518aa773e 100644--- a/zerver/lib/test_classes.py+++ b/zerver/lib/test_classes.py@@ -532,6 +532,9 @@ Output:encoded = urlencode(info, doseq=True)else:content_type = MULTIPART_CONTENT+ elif content_type.startswith("multipart/form-data"):+ # To support overriding webhooks' default content_type (application/json)+ content_type = MULTIPART_CONTENTreturn django_client.post(url,encoded,