diff --git a/src/omero/gateway/__init__.py b/src/omero/gateway/__init__.py index e75ce0d6c..9cf24482c 100644 --- a/src/omero/gateway/__init__.py +++ b/src/omero/gateway/__init__.py @@ -1539,6 +1539,8 @@ def __init__(self, username=None, passwd=None, client_obj=None, group=None, elif pc != self.port: raise Exception("ports %s and %s do not match" % (pc, self.port)) self.secure = secure + if self.c is not None: + self.secure = self.c.isSecure() self.useragent = useragent self.userip = userip