Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 18552:e8efcc8ff5c0 stable
hgweb.cgi: fix internal WSGI emulation (issue3804)
The internal WSGI emulation in wsgicgi.py was not fully WSGI compliant and
assumed that all responses sent a body. With 3fbdbeab38cc that caused a real
bug when using hgweb.cgi.
wsgicgi.py will now make sure headers always are sent, using the pattern from
PEP 333 and similar to how it is done in c007e5c54b16.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 04 Feb 2013 23:25:25 +0100 |
parents | 0af2fe7b3274 |
children | 6d098adc5a46 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Sun Feb 03 14:26:39 2013 -0800 +++ b/tests/test-hgweb-commands.t Mon Feb 04 23:25:25 2013 +0100 @@ -1376,13 +1376,20 @@ $ . "$TESTDIR/cgienv" $ PATH_INFO=/bookmarks; export PATH_INFO $ QUERY_STRING='style=raw' - $ python hgweb.cgi + $ python hgweb.cgi | grep -v ETag: + Status: 200 Script output follows\r (esc) + Content-Type: text/plain; charset=ascii\r (esc) + \r (esc) listbookmarks hides secret bookmarks $ PATH_INFO=/; export PATH_INFO $ QUERY_STRING='cmd=listkeys&namespace=bookmarks' $ python hgweb.cgi + Status: 200 Script output follows\r (esc) + Content-Type: application/mercurial-0.1\r (esc) + Content-Length: 0\r (esc) + \r (esc) search works with filtering