summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-12-15 13:56:43 +0000
committerMark Haines <mark.haines@matrix.org>2014-12-15 13:56:43 +0000
commit3610641a62ab781afb6e8eded0b57e2ce2f6b6b5 (patch)
treea73e2ea097a197a8eff921b4a977b20d3988d212
parentreturn an mxc uri rather than a content_token. (diff)
downloadsynapse-3610641a62ab781afb6e8eded0b57e2ce2f6b6b5.tar.xz
Update docs in media_repository
-rw-r--r--synapse/media/v1/media_repository.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/media/v1/media_repository.py b/synapse/media/v1/media_repository.py
index 7e446fd827..cbc49aa325 100644
--- a/synapse/media/v1/media_repository.py
+++ b/synapse/media/v1/media_repository.py
@@ -39,9 +39,9 @@ class MediaRepositoryResource(Resource):
         <= HTTP/1.1 200 OK
            Content-Type: application/json
 
-           { "token": <media-id> }
+           { "content-uri": "mxc://<server-name>/<media-id>" }
 
-        => GET /_matrix/media/v1/download/<server_name>/<media-id> HTTP/1.1
+        => GET /_matrix/media/v1/download/<server-name>/<media-id> HTTP/1.1
 
         <= HTTP/1.1 200 OK
            Content-Type: <media-type>