Skip to content

Commit b79267d

Browse files
authored
Merge pull request #193 from oras-project/ensure-headers-defined
token.py ensure headers is defined
2 parents b130349 + ea634a9 commit b79267d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

oras/auth/token.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def authenticate_request(
5757
:param original: original response to get the Www-Authenticate header
5858
:type original: requests.Response
5959
"""
60+
headers = headers or {}
6061
if refresh:
6162
self.token = None
6263
authHeaderRaw = original.headers.get("Www-Authenticate")

0 commit comments

Comments
 (0)