Merge branch 'develop' into rav/pass_site_to_make_request

This commit is contained in:
Richard van der Hoff 2020-11-16 15:22:40 +00:00 committed by GitHub
commit bebfb9a97b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 147 additions and 120 deletions

View file

@ -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])