anonymousland-synapse/tests/rest
Denis Kasak 337f38cac3
Implement a content type allow list for URL previews (#11936)
This implements an allow list for content types for which Synapse will attempt URL preview. If a URL resolves to a resource with a content type which isn't in the list, the download will terminate immediately.

This makes sense given that Synapse would never successfully generate a URL preview for such files in the first place, and helps prevent issues with streaming media servers, such as #8302.

Signed-off-by: Denis Kasak dkasak@termina.org.uk
2022-02-10 15:43:01 +00:00
..
admin Add type hints to tests/rest/admin (#11851) 2022-01-31 14:20:05 -05:00
client Experimental support to include bundled aggregations in search results (MSC3666) (#11837) 2022-02-08 09:21:20 -05:00
key Add reactor to SynapseRequest and fix up types. (#10868) 2021-09-24 11:01:25 +01:00
media Implement a content type allow list for URL previews (#11936) 2022-02-10 15:43:01 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_health.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_well_known.py Support for serving server well-known files (#11211) 2021-11-01 15:10:16 +00:00