From 7f81b042b13a622ff206e354f6e3412bd7355844 Mon Sep 17 00:00:00 2001 From: Ashish Patel Date: Sat, 24 Feb 2024 22:42:05 +0530 Subject: [PATCH] Issue 1337: Bearer token on linux environment has new line character (#1338) --- atlassian/rest_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/rest_client.py b/atlassian/rest_client.py index ef49cbb58..a45a6b7cd 100644 --- a/atlassian/rest_client.py +++ b/atlassian/rest_client.py @@ -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