summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorAdrian Tschira <nota@notafile.com>2018-04-28 23:56:59 +0200
committerAdrian Tschira <nota@notafile.com>2018-04-29 00:13:57 +0200
commite9143b659352e87fd9e26c8e5a771c78011bc945 (patch)
tree18d53d291157b9e9eb69b8bdb405ccfaf51e1135 /synapse/rest
parentMerge pull request #3127 from matrix-org/rav/deferred_timeout (diff)
downloadsynapse-e9143b659352e87fd9e26c8e5a771c78011bc945.tar.xz
more bytes strings
Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/media/v1/upload_resource.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/media/v1/upload_resource.py b/synapse/rest/media/v1/upload_resource.py
index f6f498cdc5..a31e75cb46 100644
--- a/synapse/rest/media/v1/upload_resource.py
+++ b/synapse/rest/media/v1/upload_resource.py
@@ -81,15 +81,15 @@ class UploadResource(Resource):
         headers = request.requestHeaders
 
         if headers.hasHeader("Content-Type"):
-            media_type = headers.getRawHeaders("Content-Type")[0]
+            media_type = headers.getRawHeaders(b"Content-Type")[0]
         else:
             raise SynapseError(
                 msg="Upload request missing 'Content-Type'",
                 code=400,
             )
 
-        # if headers.hasHeader("Content-Disposition"):
-        #     disposition = headers.getRawHeaders("Content-Disposition")[0]
+        # if headers.hasHeader(b"Content-Disposition"):
+        #     disposition = headers.getRawHeaders(b"Content-Disposition")[0]
         # TODO(markjh): parse content-dispostion
 
         content_uri = yield self.media_repo.create_content(