mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-04-17 06:23:12 -04:00
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:
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user