mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
outgoing_http: Provide a convenient way to set default headers.
This commit is contained in:
committed by
Tim Abbott
parent
6339e7fd47
commit
8df82f50e4
@@ -36,11 +36,7 @@ class OutgoingWebhookServiceInterface(metaclass=abc.ABCMeta):
|
||||
self.session: requests.Session = OutgoingSession(
|
||||
role="webhook",
|
||||
timeout=10,
|
||||
)
|
||||
self.session.headers.update(
|
||||
{
|
||||
"User-Agent": "ZulipOutgoingWebhook/" + ZULIP_VERSION,
|
||||
}
|
||||
headers={"User-Agent": "ZulipOutgoingWebhook/" + ZULIP_VERSION},
|
||||
)
|
||||
|
||||
@abc.abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user