synapse-product/synapse/http
Richard van der Hoff d840019192
Fix idna and ipv6 literal handling in MatrixFederationAgent (#4487)
Turns out that the library does a better job of parsing URIs than our
reinvented wheel. Who knew.

There are two things going on here. The first is that, unlike
parse_server_name, URI.fromBytes will strip off square brackets from IPv6
literals, which means that it is valid input to ClientTLSOptionsFactory and
HostnameEndpoint.

The second is that we stay in `bytes` throughout (except for the argument to
ClientTLSOptionsFactory), which avoids the weirdness of (sometimes) ending up
with idna-encoded values being held in `unicode` variables. TBH it probably
would have been ok but it made the tests fragile.
2019-01-28 09:56:59 +00:00
..
federation Fix idna and ipv6 literal handling in MatrixFederationAgent (#4487) 2019-01-28 09:56:59 +00:00
__init__.py redact better 2018-09-14 03:45:34 +10:00
additional_resource.py run isort 2018-07-09 16:09:20 +10:00
client.py Fix UnboundLocalError in post_urlencoded_get_json (#4460) 2019-01-24 13:38:29 +00:00
endpoint.py Kill off matrix_federation_endpoint 2019-01-22 20:34:35 +00:00
matrixfederationclient.py Fix Host header sent by MatrixFederationAgent (#4468) 2019-01-25 12:38:16 +00:00
request_metrics.py Make the metrics less racy (#4061) 2018-10-19 21:45:45 +11:00
server.py Fix URL preview bugs (type error when loading cache from db, content-type including quotes) (#4157) 2018-11-08 01:37:43 +11:00
servlet.py fix parse_string docstring 2018-11-08 11:12:29 +00:00
site.py Fix error when logging incomplete requests 2018-10-02 12:06:22 +01:00