Skip to content

Commit

Permalink
review how secure flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Apr 11, 2024
1 parent e989c33 commit 2474872
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,8 +1539,6 @@ 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

Expand Down Expand Up @@ -2049,7 +2047,7 @@ def isSecure(self):
Returns 'True' if the underlying omero.clients.BaseClient is connected
using SSL
"""
return self.secure
return hasattr(self.c, 'isSecure') and self.c.isSecure() or self.secure

def _getSessionId(self):
return self.c.getSessionId()
Expand Down

0 comments on commit 2474872

Please sign in to comment.