tests/test-clone-cgi.t
branchstable
changeset 18552 e8efcc8ff5c0
parent 15567 8b84d040d9f9
child 22046 7a9cbb315d84
--- a/tests/test-clone-cgi.t	Sun Feb 03 14:26:39 2013 -0800
+++ b/tests/test-clone-cgi.t	Mon Feb 04 23:25:25 2013 +0100
@@ -29,3 +29,11 @@
   $ python hgweb.cgi >page1 2>&1
   $ python "$TESTDIR/md5sum.py" page1
   1f424bb22ec05c3c6bc866b6e67efe43  page1
+
+make sure headers are sent even when there is no body
+
+  $ QUERY_STRING="cmd=listkeys&namespace=nosuchnamespace" 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)