Skip to content

Commit

Permalink
Merge pull request #130 from frederikslos/fix/str-encode
Browse files Browse the repository at this point in the history
fix/string encode compatibility
  • Loading branch information
rajeevkallur authored May 7, 2022
2 parents c9ccde9 + d8cd69c commit 5f02b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redfish/rest/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def rest_request(self, path, method='GET', args=None, body=None, headers=None):
files = None
request_args = {}
if isinstance(path, bytes):
path = str(path, "utf-8")
path = str(path).encode("utf-8")
external_uri = True if 'redfish.dmtf.org' in path else False
else:
external_uri = True if 'redfish.dmtf.org' in path else False
Expand Down

0 comments on commit 5f02b0b

Please sign in to comment.