mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-02 11:26:05 -04:00
Merge remote-tracking branch 'upstream/release-v1.32.0'
This commit is contained in:
commit
dbe12b3eb1
207 changed files with 4883 additions and 1550 deletions
|
@ -297,7 +297,7 @@ class SimpleHttpClient:
|
|||
def __init__(
|
||||
self,
|
||||
hs: "HomeServer",
|
||||
treq_args: Dict[str, Any] = {},
|
||||
treq_args: Optional[Dict[str, Any]] = None,
|
||||
ip_whitelist: Optional[IPSet] = None,
|
||||
ip_blacklist: Optional[IPSet] = None,
|
||||
user_agent: Optional[str] = None,
|
||||
|
@ -318,7 +318,7 @@ class SimpleHttpClient:
|
|||
|
||||
self._ip_whitelist = ip_whitelist
|
||||
self._ip_blacklist = ip_blacklist
|
||||
self._extra_treq_args = treq_args
|
||||
self._extra_treq_args = treq_args or {}
|
||||
|
||||
self.user_agent = user_agent or hs.version_string
|
||||
self.clock = hs.get_clock()
|
||||
|
@ -591,7 +591,7 @@ class SimpleHttpClient:
|
|||
uri: str,
|
||||
json_body: Any,
|
||||
args: Optional[QueryParams] = None,
|
||||
headers: RawHeaders = None,
|
||||
headers: Optional[RawHeaders] = None,
|
||||
) -> Any:
|
||||
"""Puts some json to the given URI.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue