Skip to content

Commit

Permalink
basic headers maintenance
Browse files Browse the repository at this point in the history
Signed-off-by: tarilabs <[email protected]>
  • Loading branch information
tarilabs committed Jun 24, 2024
1 parent fea039c commit 5fab6dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion oras/auth/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ def authenticate_request(
:param originalResponse: original response to get the Www-Authenticate header
:type originalResponse: requests.Response
"""
return self.get_auth_header(), True
result = {}
if headers is not None:
result.update(headers)
result.update(self.get_auth_header())
return result, True

0 comments on commit 5fab6dd

Please sign in to comment.