element-hq / element-hq/synapse
Rendezvous handler code can be simplified after `text/plain` requirement
Open
T-Task
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
Context: https://github.com/element-hq/synapse/pull/17122#discussion_r1579294847
The code can likely be simplified a bit now that only `Content-Type`s of `text/plain` are allowed.
We may also want to enforce this requirement in the type checker, rather than a runtime check, to reduce the chance of this check accidentally being removed in the future, and other code assuming it is there.
Contributor guide
Assessment
This issue has not been assessed yet.