forked-synapse/synapse/rest/media/v1
Shay f5c6a80886
Handle missing Content-Type header when accessing remote media (#11200)
* add code to handle missing content-type header and a test to verify that it works

* add handling for missing content-type in the /upload endpoint as well

* slightly refactor test code to put private method in approriate place

* handle possible null value for content-type when pulling from the local db

* add changelog

* refactor test and add code to handle missing content-type in cached remote media

* requested changes

* Update changelog.d/11200.bugfix

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
2021-11-01 10:26:02 -07:00
..
__init__.py Relax ignore-missing-imports for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
_base.py Add reactor to SynapseRequest and fix up types. (#10868) 2021-09-24 11:01:25 +01:00
config_resource.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
download_resource.py Add reactor to SynapseRequest and fix up types. (#10868) 2021-09-24 11:01:25 +01:00
filepath.py Remove dead code from MediaFilePaths (#11056) 2021-10-13 13:41:24 +01:00
media_repository.py Handle missing Content-Type header when accessing remote media (#11200) 2021-11-01 10:26:02 -07:00
media_storage.py Fix race conditions when creating media store and config directories (#10913) 2021-09-27 11:29:23 +01:00
oembed.py Be more lenient when parsing the version for oEmbed responses. (#11065) 2021-10-13 07:00:07 -04:00
preview_url_resource.py Ensure each charset is attempted only once during media preview. (#11089) 2021-10-14 18:51:44 +00:00
storage_provider.py Avoid storing URL cache files in storage providers (#10911) 2021-09-27 12:55:27 +01:00
thumbnail_resource.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
thumbnailer.py Relax ignore-missing-imports for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
upload_resource.py Handle missing Content-Type header when accessing remote media (#11200) 2021-11-01 10:26:02 -07:00