mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 06:54:54 -04:00
Fix SimpleHttpClient not sending Accept header in get_json
(#11677)
Co-authored-by: reivilibre <olivier@librepush.net>
This commit is contained in:
parent
7a1cefc6e3
commit
0201c6371c
2 changed files with 2 additions and 1 deletions
|
@ -588,7 +588,7 @@ class SimpleHttpClient:
|
|||
if headers:
|
||||
actual_headers.update(headers) # type: ignore
|
||||
|
||||
body = await self.get_raw(uri, args, headers=headers)
|
||||
body = await self.get_raw(uri, args, headers=actual_headers)
|
||||
return json_decoder.decode(body.decode("utf-8"))
|
||||
|
||||
async def put_json(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue