Skip to content

Commit

Permalink
Case insensitive match for Authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
mideeks authored Mar 15, 2017
1 parent fbe2fb8 commit f45db1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msrest/http_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def log_request(adapter, request, *args, **kwargs):
_LOGGER.debug("Request method: %r", request.method)
_LOGGER.debug("Request headers:")
for header, value in request.headers.items():
if header == 'Authorization':
if header.lower() == 'authorization':
value = '*****'
_LOGGER.debug(" %r: %r", header, value)
_LOGGER.debug("Request body:")
Expand Down

0 comments on commit f45db1b

Please sign in to comment.