We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 152ecf8 commit fbff3e8Copy full SHA for fbff3e8
1 file changed
codecov_cli/helpers/request.py
@@ -109,7 +109,7 @@ def get_token_header_or_fail(token: Optional[str]) -> dict:
109
raise click.ClickException(
110
"Codecov token not found. Please provide Codecov token with -t flag."
111
)
112
- return {"Authorization": f"token {token}"}
+ return {"Authorization": f"token {token.strip()}"}
113
114
115
def get_token_header(token: Optional[str]) -> Optional[dict]:
@@ -118,7 +118,7 @@ def get_token_header(token: Optional[str]) -> Optional[dict]:
118
"""
119
if token is None:
120
return None
121
122
123
124
@retry_request
0 commit comments