Skip to content

Commit 7f81b04

Browse files
Issue 1337: Bearer token on linux environment has new line character (#1338)
1 parent 5c54e5d commit 7f81b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/rest_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _create_basic_session(self, username, password):
101101
self._session.auth = (username, password)
102102

103103
def _create_token_session(self, token):
104-
self._update_header("Authorization", "Bearer {token}".format(token=token))
104+
self._update_header("Authorization", "Bearer {token}".format(token=token.strip()))
105105

106106
def _create_kerberos_session(self, _):
107107
from requests_kerberos import OPTIONAL, HTTPKerberosAuth

0 commit comments

Comments
 (0)