mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-08 14:18:08 -05:00
Merge pull request #24 from matrix-org/travis-fix-alias-lookups
Encode hashes correctly in proxied requests
This commit is contained in:
commit
5d43113a26
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user