summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-01-13 12:41:51 +0000
committerGitHub <noreply@github.com>2020-01-13 12:41:51 +0000
commitfeee8199734c9d8a18fa0be12fc5ec09ae140a3a (patch)
tree7be23d4302e7f4de45bb7f14a930b62f509965f5 /synapse
parentcomment for run_in_background (diff)
downloadsynapse-feee8199734c9d8a18fa0be12fc5ec09ae140a3a.tar.xz
Fix exceptions on requests for non-ascii urls (#6682)
Fixes #6402
Diffstat (limited to 'synapse')
-rw-r--r--synapse/http/site.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py
index 9f2d035fa0..911251c0bc 100644
--- a/synapse/http/site.py
+++ b/synapse/http/site.py
@@ -88,7 +88,7 @@ class SynapseRequest(Request):
     def get_redacted_uri(self):
         uri = self.uri
         if isinstance(uri, bytes):
-            uri = self.uri.decode("ascii")
+            uri = self.uri.decode("ascii", errors="replace")
         return redact_uri(uri)
 
     def get_method(self):