Skip to content

Commit

Permalink
Merge pull request #2986 from chandanch/master
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed May 8, 2023
2 parents 506d014 + ed9729a commit efa9bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/glogging.py
Expand Up @@ -469,7 +469,7 @@ def _get_user(self, environ):
# so we need to convert it to a byte string
auth = base64.b64decode(auth[1].strip().encode('utf-8'))
# b64decode returns a byte string
auth.split(b":", 1)[0].decode(UTF-8", "replace")
auth.split(b":", 1)[0].decode("UTF-8", "replace")
except (TypeError, binascii.Error, UnicodeDecodeError) as exc:
self.debug("Couldn't get username: %s", exc)
return user
Expand Down

0 comments on commit efa9bf6

Please sign in to comment.