MatrixSynapse/synapse
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
..
_scripts
api Make `check_event_allowed` module API callback not fail open (accept events) when an exception is raised (#11033) 2021-11-01 15:45:56 +00:00
app Support for serving server well-known files (#11211) 2021-11-01 15:10:16 +00:00
appservice
config Support for serving server well-known files (#11211) 2021-11-01 15:10:16 +00:00
crypto
events Make `check_event_allowed` module API callback not fail open (accept events) when an exception is raised (#11033) 2021-11-01 15:45:56 +00:00
federation Add `use_float=true` to ijson calls in Synapse (#11217) 2021-11-01 09:28:04 -07:00
groups
handlers
http
logging
metrics Add metrics to the threadpools (#11178) 2021-11-01 11:21:36 +00:00
module_api
push
replication
res
rest Handle missing Content-Type header when accessing remote media (#11200) 2021-11-01 10:26:02 -07:00
server_notices
spam_checker_api
state
static
storage Add metrics to the threadpools (#11178) 2021-11-01 11:21:36 +00:00
streams
util
__init__.py
event_auth.py
notifier.py
py.typed
python_dependencies.py
server.py
types.py
visibility.py