Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codecov_cli/helpers/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_token_header_or_fail(token: Optional[str]) -> dict:
raise click.ClickException(
"Codecov token not found. Please provide Codecov token with -t flag."
)
return {"Authorization": f"token {token}"}
return {"Authorization": f"token {token.strip()}"}


def get_token_header(token: Optional[str]) -> Optional[dict]:
Expand All @@ -118,7 +118,7 @@ def get_token_header(token: Optional[str]) -> Optional[dict]:
"""
if token is None:
return None
return {"Authorization": f"token {token}"}
return {"Authorization": f"token {token.strip()}"}


@retry_request
Expand Down
Loading