# HG changeset patch # User Marcin Kuzminski # Date 2016-09-06 16:58:12 # Node ID 3d871443d0ab4f650e691b04a935c9ce2022a167 # Parent 75333e720c4a2037664951503a54bb7284fcfdc5 vcs: re-use repo config propagated to the middleware to extract push_ssl configuration 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)