##// END OF EJS Templates
vcs: re-use repo config propagated to the middleware to extract push_ssl...
marcink -
r756:3d871443 default
parent child Browse files
Show More
@@ -209,8 +209,7 b' class SimpleVCS(object):'
209 """
209 """
210 org_proto = environ['wsgi._org_proto']
210 org_proto = environ['wsgi._org_proto']
211 # check if we have SSL required ! if not it's a bad request !
211 # check if we have SSL required ! if not it's a bad request !
212 require_ssl = str2bool(
212 require_ssl = str2bool(self.repo_vcs_config.get('web', 'push_ssl'))
213 SettingsModel().get_ui_by_key('push_ssl').ui_value)
214 if require_ssl and org_proto == 'http':
213 if require_ssl and org_proto == 'http':
215 log.debug('proto is %s and SSL is required BAD REQUEST !',
214 log.debug('proto is %s and SSL is required BAD REQUEST !',
216 org_proto)
215 org_proto)
General Comments 0
You need to be logged in to leave comments. Login now