diff options
author | Fr3shTea <31766876+Fr3shTea@users.noreply.github.com> | 2022-01-05 11:59:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 11:59:29 +0000 |
commit | 0201c6371cdfa0e8245c59686c131e40384bbac2 (patch) | |
tree | 67203385b717f9bde8fa340da0902bd5dd9b379f /synapse/http/client.py | |
parent | Add admin API to get users' account data (#11664) (diff) | |
download | synapse-0201c6371cdfa0e8245c59686c131e40384bbac2.tar.xz |
Fix SimpleHttpClient not sending Accept header in `get_json` (#11677)
Co-authored-by: reivilibre <olivier@librepush.net>
Diffstat (limited to 'synapse/http/client.py')
-rw-r--r-- | synapse/http/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py index fbbeceabeb..ca33b45cb2 100644 --- a/synapse/http/client.py +++ b/synapse/http/client.py @@ -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( |