Show More
@@ -212,7 +212,7 b' class hgweb(object):' | |||||
212 | req.form['cmd'] = [tmpl.cache['default']] |
|
212 | req.form['cmd'] = [tmpl.cache['default']] | |
213 | cmd = req.form['cmd'][0] |
|
213 | cmd = req.form['cmd'][0] | |
214 |
|
214 | |||
215 |
if cmd == 'file' and 'raw' in req.form |
|
215 | if cmd == 'file' and 'raw' in req.form.get('style', []): | |
216 | webcommands.rawfile(self, req, tmpl) |
|
216 | webcommands.rawfile(self, req, tmpl) | |
217 | else: |
|
217 | else: | |
218 | getattr(webcommands, cmd)(self, req, tmpl) |
|
218 | getattr(webcommands, cmd)(self, req, tmpl) |
@@ -27,6 +27,7 b' echo % File-related' | |||||
27 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo/?style=raw' |
|
27 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo/?style=raw' | |
28 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/annotate/1/foo/?style=raw' |
|
28 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/annotate/1/foo/?style=raw' | |
29 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/?style=raw' |
|
29 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/?style=raw' | |
|
30 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo' | sed "s/[0-9]* years/many years/" | |||
30 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/1/foo/?style=raw' |
|
31 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/1/foo/?style=raw' | |
31 |
|
32 | |||
32 | echo % Overviews |
|
33 | echo % Overviews |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now