Skip to content

Commit 76d2c61

Browse files
authored
Merge pull request #178 from DMTF/Session-Location-Workaround-Fix
Fixed bug in recent workaround logic for services not returning the 'Location' header
2 parents 07a7a67 + 5645442 commit 76d2c61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/redfish/rest/v1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ def session_location(self):
288288
"""Property for accessing the saved session location"""
289289
if self._session_location:
290290
return self._session_location
291+
if self.status not in [200, 201, 202, 204]:
292+
return None
291293

292294
self._session_location = self.getheader('location')
293295
if self._session_location is None:

0 commit comments

Comments
 (0)