##// END OF EJS Templates
fix traceback in hgweb when URL doesn't end in one of the archive specs...
fix traceback in hgweb when URL doesn't end in one of the archive specs If the last n charecters of the URL doesn't match an entry in archive_specs req.form never has a key 'type'. When achive() looks up 'type' in the form dict it causes a traceback rather than printing an error message.

File last commit:

r6137:1c0e7afe default
r6669:782dbbdf default
Show More
test-webraw.out
10 lines | 382 B | text/plain | TextLexer
Eric Hopper
Add a test for getting raw files via the web UI.
r2532 200 Script output follows
content-type: text/plain
content-length: 157
Thomas Arendsen Hein
hgweb: Quote filenames when downloading raw files.
r6137 content-disposition: inline; filename="some \"text\".txt"
Eric Hopper
Add a test for getting raw files via the web UI.
r2532
This is just some random text
that will go inside the file and take a few lines.
It is very boring to read, but computers don't
care about things like that.
Thomas Arendsen Hein
hgweb: Quote filenames when downloading raw files.
r6137 host - - [date] "GET /?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw HTTP/1.1" 200 -