element-hq / element-hq/synapse

Rendezvous handler code can be simplified after `text/plain` requirement

Open
#17,124 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.