Skip to content

Commit 5f02b0b

Browse files
authored
Merge pull request HewlettPackard#130 from frederikslos/fix/str-encode
fix/string encode compatibility
2 parents c9ccde9 + d8cd69c commit 5f02b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redfish/rest/connections.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def rest_request(self, path, method='GET', args=None, body=None, headers=None):
164164
files = None
165165
request_args = {}
166166
if isinstance(path, bytes):
167-
path = str(path, "utf-8")
167+
path = str(path).encode("utf-8")
168168
external_uri = True if 'redfish.dmtf.org' in path else False
169169
else:
170170
external_uri = True if 'redfish.dmtf.org' in path else False

0 commit comments

Comments
 (0)