Skip to content
Snippets Groups Projects
Commit dbddca1e authored by I. Nüske's avatar I. Nüske
Browse files

BUG: Request responses without the "Set-Cookie" header no longer overwrite the...

BUG: Request responses without the "Set-Cookie" header no longer overwrite the current auth_token with None
parent ce4810be
No related branches found
No related tags found
2 merge requests!175BUG: Request responses without the "Set-Cookie" header no longer overwrite the...,!162Prevent auth_token from being overwritten with None
...@@ -125,8 +125,9 @@ class AbstractAuthenticator(ABC): ...@@ -125,8 +125,9 @@ class AbstractAuthenticator(ABC):
Returns Returns
------- -------
""" """
self.auth_token = parse_auth_token( new_token = parse_auth_token(response.getheader("Set-Cookie"))
response.getheader("Set-Cookie")) if new_token is not None:
self.auth_token = new_token
def on_request(self, method: str, path: str, headers: QueryDict, **kwargs): def on_request(self, method: str, path: str, headers: QueryDict, **kwargs):
# pylint: disable=unused-argument # pylint: disable=unused-argument
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment