mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
Merge pull request #21794 from rjfd/wip-dashboard-fix-awsauth
mgr/dashboard: awsauth: fix python3 string decode problem Reviewed-by: Sebastian Wagner <swagner@suse.com> Reviewed-by: Lenz Grimmer <LGrimmer@suse.com>
This commit is contained in:
commit
fbf4c8dcbf
@ -112,7 +112,8 @@ class S3Auth(AuthBase):
|
||||
for key in headers:
|
||||
lk = key.lower()
|
||||
try:
|
||||
lk = lk.decode('utf-8')
|
||||
if isinstance(lk, bytes):
|
||||
lk = lk.decode('utf-8')
|
||||
except UnicodeDecodeError:
|
||||
pass
|
||||
if headers[key] and (lk in interesting_headers.keys()
|
||||
|
Loading…
Reference in New Issue
Block a user