Show More
@@ -199,15 +199,18 b' class hgweb(object):' | |||||
199 | req.form['node'] = [fn[:-len(ext)]] |
|
199 | req.form['node'] = [fn[:-len(ext)]] | |
200 | req.form['type'] = [type_] |
|
200 | req.form['type'] = [type_] | |
201 |
|
201 | |||
202 |
# |
|
202 | # process this if it's a protocol request | |
203 |
|
||||
204 | try: |
|
|||
205 |
|
203 | |||
206 |
|
|
204 | cmd = req.form.get('cmd', [''])[0] | |
207 |
|
|
205 | if cmd in protocol.__all__: | |
208 |
|
|
206 | method = getattr(protocol, cmd) | |
209 |
|
|
207 | method(self, req) | |
210 |
|
|
208 | return | |
|
209 | ||||
|
210 | # process the web interface request | |||
|
211 | ||||
|
212 | try: | |||
|
213 | ||||
211 |
|
|
214 | tmpl = self.templater(req) | |
212 |
|
|
215 | ctype = tmpl('mimetype', encoding=self.encoding) | |
213 |
|
|
216 | ctype = templater.stringify(ctype) |
General Comments 0
You need to be logged in to leave comments.
Login now