vcs: re-use repo config propagated to the middleware to extract push_ssl
configuration
This commit is contained in:
parent
0a6785deab
commit
d9ca3e74c2
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue