diff options
author | Adrian Tschira <nota@notafile.com> | 2018-04-03 20:41:21 +0200 |
---|---|---|
committer | Adrian Tschira <nota@notafile.com> | 2018-04-04 13:48:51 +0200 |
commit | 616835187702a0c6f16042e3efb452e1ee3e7826 (patch) | |
tree | 88e4de3798a90b18fb2dbe572ba362aa8eaab3c4 /tests/utils.py | |
parent | Merge pull request #3049 from matrix-org/rav/use_staticjson (diff) | |
download | synapse-616835187702a0c6f16042e3efb452e1ee3e7826.tar.xz |
Add b prefixes to some strings that are bytes in py3
This has no effect on python2 Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to '')
-rw-r--r-- | tests/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index 8efd3a3475..f15317d27b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -212,7 +212,7 @@ class MockHttpResource(HttpServer): headers = {} if federation_auth: - headers["Authorization"] = ["X-Matrix origin=test,key=,sig="] + headers[b"Authorization"] = ["X-Matrix origin=test,key=,sig="] mock_request.requestHeaders.getRawHeaders = mock_getRawHeaders(headers) # return the right path if the event requires it |