##// END OF EJS Templates
hgweb: all protocol functions have become generators...
hgweb: all protocol functions have become generators Using the write() callable supplied by the start_response() call is frowned upon by the WSGI spec, returning an iterable over the content chunks is the recommended way. Be aware, though: returning many small chunks will slow down responses, because the server has to flush each chunk separately.

File last commit:

r6137:1c0e7afe default
r6784:18c429ea 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 -