MatrixSynapse/synapse/http
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
..
federation
__init__.py
additional_resource.py
client.py Implement a content type allow list for URL previews (#11936) 2022-02-10 15:43:01 +00:00
connectproxyclient.py
matrixfederationclient.py
proxyagent.py
request_metrics.py
server.py
servlet.py
site.py Don't print HTTPStatus.* in "Processed..." logs (#11827) 2022-01-26 12:47:34 +00:00