summary refs log tree commit diff
path: root/tests/rest/client/v1/utils.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-12-31 14:55:18 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-12-31 14:55:18 +0000
commit917d0f925017791eb2b81effff0a12ae8948e902 (patch)
tree9f9782ae79727dfe50c6e0285629f08caeabea95 /tests/rest/client/v1/utils.py
parentMerge commit '9debe657a' into anoa/dinsic_release_1_23_1 (diff)
parentMove `wait_until_result` into `FakeChannel` (#8758) (diff)
downloadsynapse-917d0f925017791eb2b81effff0a12ae8948e902.tar.xz
Merge commit 'f12589547' into anoa/dinsic_release_1_23_1
Diffstat (limited to 'tests/rest/client/v1/utils.py')
-rw-r--r--tests/rest/client/v1/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/rest/client/v1/utils.py b/tests/rest/client/v1/utils.py

index 60e4b9b846..900852f85b 100644 --- a/tests/rest/client/v1/utils.py +++ b/tests/rest/client/v1/utils.py
@@ -317,9 +317,7 @@ class RestHelper: path, content=image_data, access_token=tok, - ) - request.requestHeaders.addRawHeader( - b"Content-Length", str(image_length).encode("UTF-8") + custom_headers=[(b"Content-Length", str(image_length))], ) request.render(resource) self.hs.get_reactor().pump([100])