MatrixSynapse/synapse/rest
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
..
admin Remove deprecated delete room admin API (#11213) 2021-11-01 15:11:24 +00:00
client Support Client-Server API r0.6.1 (#11097) 2021-11-01 13:28:39 +00:00
consent Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
key Add reactor to `SynapseRequest` and fix up types. (#10868) 2021-09-24 11:01:25 +01:00
media Handle missing Content-Type header when accessing remote media (#11200) 2021-11-01 10:26:02 -07:00
synapse Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
__init__.py
health.py
well_known.py Support for serving server well-known files (#11211) 2021-11-01 15:10:16 +00:00