xlab-steampunk / redfish-client-python

Minimalistic Redfish API client
Apache License 2.0
4 stars 8 forks source link

Strip non-path components from location header when used for session id #40

Closed kwilcox closed 1 year ago

kwilcox commented 1 year ago

Some RedFish implementations (HPE/iLO 4 and 5) were returning the full URI in the "location" header. Logout would fail for these implementations becuase the _session_logout() assumes just a path is returned. This is an issue with the RedFish implementation but seems like a harmless fix to include in the library.