mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
For our bots that use GenericOutgoingWebhookService (which are basically Zulip style bots), we now include a "content-type" header of "application/json". We accomplish this by having the service classes implement their own custom method called `send_data_to_server`. For the Slack-related code, we just extracted code from `do_rest_call`, and then for the Zulip-related code, we added a `headers` parameter.
13 KiB
13 KiB