Merge pull request #24 from matrix-org/travis-fix-alias-lookups

Encode hashes correctly in proxied requests
This commit is contained in:
Travis Ralston 2019-10-09 12:48:51 +01:00 committed by GitHub
commit 5d43113a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@
import asyncio import asyncio
import json import json
import os import os
import urllib.parse
from json import JSONDecodeError from json import JSONDecodeError
from typing import Any, Dict from typing import Any, Dict
@ -452,7 +453,7 @@ class ProxyDaemon:
assert session assert session
path = request.path path = urllib.parse.quote(request.path) # re-encode path stuff like room aliases
method = request.method method = request.method
headers = CIMultiDict(request.headers) headers = CIMultiDict(request.headers)