Fails to connect to homeserver
weechat-matrix won't connect to my homeserver. It does an SSL handshake and receives the certificate, but then shows:
matrix: Received header value surrounded by whitespace b"default-src https: data: 'unsafe-inline' 'unsafe-eval' "
It works fine with matrix.org (and riot works fine with my homeserver).
Any ideas what might be wrong here?
Seems like nio is more restrictive about HTTP headers, this sounds like the same issue as https://github.com/python-hyper/hyper-h2/issues/1206#issuecomment-565457998.
Odd that my installation of synapse should behave differently to matrix.org but that looks like the cause.
The docs link in that h2 issue is broken. Here's an alternative: https://hyper-h2.readthedocs.io/en/latest/api.html#h2.config.H2Configuration
(Thanks @alexwlchan)