Skip to content

Commit

Permalink
Issue 1337: Bearer token on linux environment has new line character (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishpatel1992 authored Feb 24, 2024
1 parent 5c54e5d commit 7f81b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlassian/rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _create_basic_session(self, username, password):
self._session.auth = (username, password)

def _create_token_session(self, token):
self._update_header("Authorization", "Bearer {token}".format(token=token))
self._update_header("Authorization", "Bearer {token}".format(token=token.strip()))

def _create_kerberos_session(self, _):
from requests_kerberos import OPTIONAL, HTTPKerberosAuth
Expand Down

0 comments on commit 7f81b04

Please sign in to comment.