Skip to content
Snippets Groups Projects
Commit 69b39ff5 authored by Agate's avatar Agate :speech_balloon:
Browse files

Fixed token issue

parent ccc0ee45
No related branches found
No related tags found
No related merge requests found
Pipeline #12912 passed
......@@ -79,7 +79,7 @@ class API(object):
headers = kwargs.setdefault("headers", {})
if self.token:
scheme = "JWT" if len(self.token) > 50 else "Bearer"
headers["Authorization"] = " ".join([scheme, self.token])
headers["Authorization"] = " ".join([scheme, str(self.token)])
handler = getattr(self._session, method)
return handler(full_url, *args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment