diff --git a/rhodecode/lib/middleware/simplevcs.py b/rhodecode/lib/middleware/simplevcs.py --- a/rhodecode/lib/middleware/simplevcs.py +++ b/rhodecode/lib/middleware/simplevcs.py @@ -209,8 +209,7 @@ class SimpleVCS(object): """ org_proto = environ['wsgi._org_proto'] # check if we have SSL required ! if not it's a bad request ! - require_ssl = str2bool( - SettingsModel().get_ui_by_key('push_ssl').ui_value) + require_ssl = str2bool(self.repo_vcs_config.get('web', 'push_ssl')) if require_ssl and org_proto == 'http': log.debug('proto is %s and SSL is required BAD REQUEST !', org_proto)