mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 14:54:21 -05:00
parent
da4e52544e
commit
feee819973
2
changelog.d/6682.bugfix
Normal file
2
changelog.d/6682.bugfix
Normal file
@ -0,0 +1,2 @@
|
||||
Fix "CRITICAL" errors being logged when a request is received for a uri containing non-ascii characters.
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user