File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
14
14
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
15
15
16
16
## [ 0.0.x] ( https://github.com/oras-project/oras-py/tree/main ) (0.0.x)
17
+ - don't add an Authorization header is there is no token (0.2.27), closes issue [ 182] ( https://github.com/oras-project/oras-py/issues/182 )
17
18
- check for blob existence before uploading (0.2.26)
18
19
- fix get_tags for ECR when limit is None, closes issue [ 173] ( https://github.com/oras-project/oras-py/issues/173 )
19
20
- fix empty token for anon tokens to work, closes issue [ 167] ( https://github.com/oras-project/oras-py/issues/167 )
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ def set_token_auth(self, token: str):
32
32
self .token = token
33
33
34
34
def get_auth_header (self ):
35
- return {"Authorization" : "Bearer %s" % self .token }
35
+ if self .token :
36
+ return {"Authorization" : "Bearer %s" % self .token }
37
+ return {}
36
38
37
39
def reset_basic_auth (self ):
38
40
"""
Original file line number Diff line number Diff line change 2
2
__copyright__ = "Copyright The ORAS Authors."
3
3
__license__ = "Apache-2.0"
4
4
5
- __version__ = "0.2.26 "
5
+ __version__ = "0.2.27 "
6
6
AUTHOR = "Vanessa Sochat"
7
7
EMAIL = "vsoch@users.noreply.github.com"
8
8
NAME = "oras"
You can’t perform that action at this time.
0 commit comments