mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2026-01-05 01:55:46 -05: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue