diff --git a/src/redfish/rest/v1.py b/src/redfish/rest/v1.py index 4509850..9760337 100644 --- a/src/redfish/rest/v1.py +++ b/src/redfish/rest/v1.py @@ -288,6 +288,8 @@ def session_location(self): """Property for accessing the saved session location""" if self._session_location: return self._session_location + if self.status not in [200, 201, 202, 204]: + return None self._session_location = self.getheader('location') if self._session_location is None: