mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Write some tests for the email pusher (#4095)
This commit is contained in:
parent
169851b412
commit
0dce9e1379
10 changed files with 182 additions and 13 deletions
|
@ -125,7 +125,9 @@ def make_request(method, path, content=b"", access_token=None, request=SynapseRe
|
|||
req.content = BytesIO(content)
|
||||
|
||||
if access_token:
|
||||
req.requestHeaders.addRawHeader(b"Authorization", b"Bearer " + access_token)
|
||||
req.requestHeaders.addRawHeader(
|
||||
b"Authorization", b"Bearer " + access_token.encode('ascii')
|
||||
)
|
||||
|
||||
if content:
|
||||
req.requestHeaders.addRawHeader(b"Content-Type", b"application/json")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue