This commit is contained in:
Amber Brown 2018-09-14 03:53:56 +10:00
parent 7c33ab76da
commit 8f08d848f5

View file

@ -85,7 +85,7 @@ class SynapseRequest(Request):
return "%s-%i" % (self.method, self.request_seq) return "%s-%i" % (self.method, self.request_seq)
def get_redacted_uri(self): def get_redacted_uri(self):
return redact_uri(self.uri) return redact_uri(self.uri.decode('ascii'))
def get_user_agent(self): def get_user_agent(self):
return self.requestHeaders.getRawHeaders(b"User-Agent", [None])[-1] return self.requestHeaders.getRawHeaders(b"User-Agent", [None])[-1]