From d9ca3e74c20d13bdc8cea572c8baf13bbecc30ca Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 6 Sep 2016 18:58:12 +0200 Subject: [PATCH] vcs: re-use repo config propagated to the middleware to extract push_ssl configuration --- rhodecode/lib/middleware/simplevcs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rhodecode/lib/middleware/simplevcs.py b/rhodecode/lib/middleware/simplevcs.py index f08e6fc8..89e64a63 100644 --- 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)