forked-synapse/synapse/rest/media/v1
Richard van der Hoff 170ccc9de5 Fix routing loop when fetching remote media
When we proxy a media request to a remote server, add a query-param, which will
tell the remote server to 404 if it doesn't recognise the server_name.

This should fix a routing loop where the server keeps forwarding back to
itself.

Also improves the error handling on remote media fetches, so that we don't
always return a rather obscure 502.
2017-03-13 16:30:36 +00:00
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
_base.py Move MediaRepository to media_repository module 2016-04-19 11:31:43 +01:00
download_resource.py Fix routing loop when fetching remote media 2017-03-13 16:30:36 +00:00
filepath.py Implement purge_media_cache admin API 2016-06-29 14:57:59 +01:00
identicon_resource.py copyrights 2016-01-07 04:26:29 +00:00
media_repository.py Fix routing loop when fetching remote media 2017-03-13 16:30:36 +00:00
preview_url_resource.py Fix crash in url preview when html tag has no text 2016-12-14 22:38:18 +01:00
thumbnail_resource.py Set CORs headers on responses from the media repo 2016-11-02 11:29:25 +00:00
thumbnailer.py Log which files we saved attachments to in the media_repository 2017-01-10 14:19:50 +00:00
upload_resource.py Log which files we saved attachments to in the media_repository 2017-01-10 14:19:50 +00:00