diff --git a/pantalaimon/daemon.py b/pantalaimon/daemon.py index 470cf09..f7679d7 100755 --- a/pantalaimon/daemon.py +++ b/pantalaimon/daemon.py @@ -15,6 +15,7 @@ import asyncio import json import os +import urllib.parse from json import JSONDecodeError from typing import Any, Dict @@ -452,7 +453,7 @@ class ProxyDaemon: assert session - path = request.path + path = urllib.parse.quote(request.path) # re-encode path stuff like room aliases method = request.method headers = CIMultiDict(request.headers)