Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed May 30, 2022
1 parent cd92983 commit 8dc64ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oras/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def _upload_blob(
size = layer["size"]

# Always reset headers between uploads
self.headers = {}
if "Authorization" in self.headers:
del self.headers["Authorization"]

# Chunked for large, otherwise POST and PUT
if size < 1024:
Expand Down Expand Up @@ -646,7 +647,7 @@ def authenticate_request(self, originalResponse: requests.Response) -> bool:

# If we have a token, set auth header (base64 encoded user/pass)
if self.token:
print('we have a token!')
print("we have a token!")
self.set_header("Authorization", "Basic %s" % self.token)

headers = copy.deepcopy(self.headers)
Expand Down

0 comments on commit 8dc64ec

Please sign in to comment.