diff --git a/redfish/main.py b/redfish/main.py index 7dd448d..ef6f29d 100644 --- a/redfish/main.py +++ b/redfish/main.py @@ -196,7 +196,7 @@ class RedfishConnection(object): # Enforce ssl if self.connection_parameters.enforceSSL is True: config.logger.debug("Enforcing SSL") - rooturl = rooturl._replace(scheme="https") + rooturl = rooturl._replace(scheme=type(rooturl.scheme)("https")) self.connection_parameters.rooturl = rooturl.geturl() # Verify cert