-
- Downloads
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>
Showing
- changelog.d/11200.bugfix 1 addition, 0 deletionschangelog.d/11200.bugfix
- synapse/rest/media/v1/media_repository.py 11 additions, 1 deletionsynapse/rest/media/v1/media_repository.py
- synapse/rest/media/v1/upload_resource.py 1 addition, 1 deletionsynapse/rest/media/v1/upload_resource.py
- tests/rest/media/v1/test_media_storage.py 16 additions, 2 deletionstests/rest/media/v1/test_media_storage.py
Loading
Please register or sign in to comment