summary refs log tree commit diff
path: root/synapse/rest/media
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2015-02-07 12:56:21 +0000
committerMatthew Hodgson <matthew@matrix.org>2015-02-07 12:56:21 +0000
commite117bc3fc582520e7d7adb86015ad814195cd286 (patch)
treea8fafeac40e471e3f95fecfd532fe84830f79fc3 /synapse/rest/media
parenti hate weakly typed languages (diff)
downloadsynapse-e117bc3fc582520e7d7adb86015ad814195cd286.tar.xz
thou shalt specify a content-length
Diffstat (limited to 'synapse/rest/media')
-rw-r--r--synapse/rest/media/v1/media_repository.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py
index 61ed90f39f..9ca4d884dd 100644
--- a/synapse/rest/media/v1/media_repository.py
+++ b/synapse/rest/media/v1/media_repository.py
@@ -34,6 +34,7 @@ class MediaRepositoryResource(Resource):
 
         => POST /_matrix/media/v1/upload HTTP/1.1
            Content-Type: <media-type>
+           Content-Length: <content-length>
 
            <media>