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 Fixed config parse bug in review_recent_signups (#11191) 2021-10-27 17:25:18 +01:00
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 Add type hints for most `HomeServer` parameters (#11095) 2021-10-22 18:15:41 +01:00
config Support for serving server well-known files (#11211) 2021-11-01 15:10:16 +00:00
crypto Fetch verify key locally rather than trying to do so over federation if origin and host are the same. (#11129) 2021-10-28 10:27:17 -07:00
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 Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
handlers Add knock information in admin exported data (#11171) 2021-10-28 18:54:38 +01:00
http Type hints for the remaining two files in `synapse.http`. (#11164) 2021-10-28 14:14:42 +01:00
logging Type hints for the remaining two files in `synapse.http`. (#11164) 2021-10-28 14:14:42 +01:00
metrics Add metrics to the threadpools (#11178) 2021-11-01 11:21:36 +00:00
module_api Add a module API method to retrieve state from a room (#11204) 2021-10-29 16:28:29 +00:00
push disallow-untyped-defs for synapse.push (#11023) 2021-10-11 17:42:10 +01:00
replication Implement an `on_new_event` callback (#11126) 2021-10-26 15:17:36 +02:00
res
rest Handle missing Content-Type header when accessing remote media (#11200) 2021-11-01 10:26:02 -07:00
server_notices disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api
state Annotate `log_function` decorator (#10943) 2021-10-27 17:27:23 +01:00
static
storage Add metrics to the threadpools (#11178) 2021-11-01 11:21:36 +00:00
streams Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util Move DNS lookups into separate thread pool (#11177) 2021-10-26 13:45:38 +01:00
__init__.py 1.46.0rc1 2021-10-26 14:04:51 +01:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
notifier.py Implement an `on_new_event` callback (#11126) 2021-10-26 15:17:36 +02:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py
server.py Add type hints for most `HomeServer` parameters (#11095) 2021-10-22 18:15:41 +01:00
types.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
visibility.py