Show More
@@ -787,7 +787,8 b' class hgweb(object):' | |||||
787 | style = req.form['style'][0] |
|
787 | style = req.form['style'][0] | |
788 | mapfile = style_map(self.templatepath, style) |
|
788 | mapfile = style_map(self.templatepath, style) | |
789 |
|
789 | |||
790 |
|
|
790 | proto = req.env.get('wsgi.url_scheme') | |
|
791 | if proto == 'https': | |||
791 | proto = 'https' |
|
792 | proto = 'https' | |
792 | default_port = "443" |
|
793 | default_port = "443" | |
793 | else: |
|
794 | else: | |
@@ -1070,7 +1071,7 b' class hgweb(object):' | |||||
1070 | # replayed |
|
1071 | # replayed | |
1071 | ssl_req = self.configbool('web', 'push_ssl', True) |
|
1072 | ssl_req = self.configbool('web', 'push_ssl', True) | |
1072 | if ssl_req: |
|
1073 | if ssl_req: | |
1073 |
if |
|
1074 | if req.env.get('wsgi.url_scheme') != 'https': | |
1074 | bail(_('ssl required\n')) |
|
1075 | bail(_('ssl required\n')) | |
1075 | return |
|
1076 | return | |
1076 | proto = 'https' |
|
1077 | proto = 'https' |
General Comments 0
You need to be logged in to leave comments.
Login now