Do not use authorisation for repr if it is None

issue10642
review342871005
(grafted from c9801860af620cbfe413c158a6a8c33ae3fb3d69)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-08-19 22:25:24 +02:00
1 parent 2a17ca0ac8
commit 405da33172
1 file changed
+5 -2
+5 -2
View File
@@ -38,8 +38,11 @@ class Request(_Request):
else:
url = self.url.decode(self.url_charset)
auth = self.authorization
args.append("%s@%s" % (
auth.get('userid', auth.username), self.remote_addr))
if auth:
args.append("%s@%s" % (
auth.get('userid', auth.username), self.remote_addr))
else:
args.append(self.remote_addr)
args.append("'%s'" % url)
args.append("[%s]" % self.method)
args.append("%s" % (self.rpc_method or ''))