mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 03:58:06 +03:00
f5c6a80886
* 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>
1 line
No EOL
132 B
Text
1 line
No EOL
132 B
Text
Fix a long-standing bug wherein a missing `Content-Type` header when downloading remote media would cause Synapse to throw an error. |