Show More
@@ -1052,6 +1052,8 The full set of options is: | |||||
1052 |
|
1052 | |||
1053 | To disable SSL verification temporarily, specify ``--insecure`` from |
|
1053 | To disable SSL verification temporarily, specify ``--insecure`` from | |
1054 | command line. |
|
1054 | command line. | |
|
1055 | ``cache`` | |||
|
1056 | Whether to support caching in hgweb. Defaults to True. | |||
1055 | ``contact`` |
|
1057 | ``contact`` | |
1056 | Name or email address of the person in charge of the repository. |
|
1058 | Name or email address of the person in charge of the repository. | |
1057 | Defaults to ui.username or ``$EMAIL`` or "unknown" if unset or empty. |
|
1059 | Defaults to ui.username or ``$EMAIL`` or "unknown" if unset or empty. |
@@ -188,7 +188,8 class hgweb(object): | |||||
188 | req.form['cmd'] = [tmpl.cache['default']] |
|
188 | req.form['cmd'] = [tmpl.cache['default']] | |
189 | cmd = req.form['cmd'][0] |
|
189 | cmd = req.form['cmd'][0] | |
190 |
|
190 | |||
191 | caching(self, req) # sets ETag header or raises NOT_MODIFIED |
|
191 | if self.configbool('web', 'cache', True): | |
|
192 | caching(self, req) # sets ETag header or raises NOT_MODIFIED | |||
192 | if cmd not in webcommands.__all__: |
|
193 | if cmd not in webcommands.__all__: | |
193 | msg = 'no such method: %s' % cmd |
|
194 | msg = 'no such method: %s' % cmd | |
194 | raise ErrorResponse(HTTP_BAD_REQUEST, msg) |
|
195 | raise ErrorResponse(HTTP_BAD_REQUEST, msg) |
General Comments 0
You need to be logged in to leave comments.
Login now