Show More
@@ -48,7 +48,7 b' def checkauthz(hgweb, req, op):' | |||||
48 | # and replayed |
|
48 | # and replayed | |
49 | scheme = req.env.get('wsgi.url_scheme') |
|
49 | scheme = req.env.get('wsgi.url_scheme') | |
50 | if hgweb.configbool('web', 'push_ssl', True) and scheme != 'https': |
|
50 | if hgweb.configbool('web', 'push_ssl', True) and scheme != 'https': | |
51 |
raise ErrorResponse(HTTP_ |
|
51 | raise ErrorResponse(HTTP_FORBIDDEN, 'ssl required') | |
52 |
|
52 | |||
53 | deny = hgweb.configlist('web', 'deny_push') |
|
53 | deny = hgweb.configlist('web', 'deny_push') | |
54 | if deny and (not user or deny == ['*'] or user in deny): |
|
54 | if deny and (not user or deny == ['*'] or user in deny): |
@@ -29,11 +29,9 b' expect ssl error' | |||||
29 | $ req |
|
29 | $ req | |
30 | pushing to http://localhost:$HGPORT/ |
|
30 | pushing to http://localhost:$HGPORT/ | |
31 | searching for changes |
|
31 | searching for changes | |
32 |
|
|
32 | abort: HTTP Error 403: ssl required | |
33 | remote: ssl required |
|
|||
34 | updating cb9a9f314b8b to public failed! |
|
|||
35 | % serve errors |
|
33 | % serve errors | |
36 |
[ |
|
34 | [255] | |
37 |
|
35 | |||
38 | expect authorization error |
|
36 | expect authorization error | |
39 |
|
37 |
General Comments 0
You need to be logged in to leave comments.
Login now