tests/test-hgweb.t
branchstable
changeset 37826 d105bbb74658
parent 37492 8d05938dd063
child 37827 11ee9bf24791
--- a/tests/test-hgweb.t	Fri Apr 27 14:51:02 2018 -0700
+++ b/tests/test-hgweb.t	Mon Apr 30 17:08:56 2018 -0700
@@ -875,4 +875,25 @@
   Internal Server Error (no-eol)
 
   $ killdaemons.py
+
+HTTP 304 works with hgwebdir (issue5844)
+
+  $ cat > hgweb.conf << EOF
+  > [paths]
+  > /repo = $TESTTMP/test
+  > EOF
+
+  $ hg serve --web-conf hgweb.conf -p $HGPORT -d --pid-file hg.pid -E error.log
+  $ cat hg.pid >> $DAEMON_PIDS
+
+  $ get-with-headers.py --twice --headeronly localhost:$HGPORT 'repo/static/style.css' - date etag server
+  200 Script output follows
+  content-length: 2677
+  content-type: text/css
+  500 Internal Server Error
+  transfer-encoding: chunked
+  [1]
+
+  $ killdaemons.py
+
   $ cd ..