diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-07-03 04:01:28 +1000 |
---|---|---|
committer | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-07-02 19:01:28 +0100 |
commit | 0ee9076ffe40140db5e86763af077efbdb5d86b0 (patch) | |
tree | acab7d2c00d9daeaf45e7c5eeee9e6cf1f8f60af /synapse/rest | |
parent | tweak changelog (diff) | |
download | synapse-0ee9076ffe40140db5e86763af077efbdb5d86b0.tar.xz |
Fix media repo breaking (#5593)
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py index 0337b64dc2..053346fb86 100644 --- a/synapse/rest/media/v1/preview_url_resource.py +++ b/synapse/rest/media/v1/preview_url_resource.py @@ -95,6 +95,7 @@ class PreviewUrlResource(DirectServeResource): ) def render_OPTIONS(self, request): + request.setHeader(b"Allow", b"OPTIONS, GET") return respond_with_json(request, 200, {}, send_cors=True) @wrap_json_request_handler |