Encode hashes correctly in proxied requests

This is a very disgusting fix, but it works. Fixes https://github.com/matrix-org/pantalaimon/issues/21
This commit is contained in:
Travis Ralston 2019-10-09 10:42:23 +01:00
parent 8021c49d34
commit fa7255e091

@ -455,6 +455,10 @@ class ProxyDaemon:
path = request.path
method = request.method
# This is very much a dirty hack, but it is fine for now
if "#" in path:
path = path.replace("#", "%23")
headers = CIMultiDict(request.headers)
headers.pop("Host", None)