Do not use authorisation for repr if it is None
issue10642 review342871005 (grafted from c9801860af620cbfe413c158a6a8c33ae3fb3d69) --HG-- branch : 6.0
This commit is contained in:
1 parent
2a17ca0ac8
commit
405da33172
1 file changed
+5
-2
@@ -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 ''))
|
||||
|
||||
Reference in new issue
Block a user