File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
test/extensions/deflatemod.t Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1414 ocsigen: local-file: [INFO] Testing " ./index.html" .
1515 ocsigen: local-file: [INFO] checking if file index . html can be sent
1616 ocsigen: local-file: [INFO] Returning " ./index.html" .
17+ ocsigen: access: connection for local-test from unix: // (): / empty_dir/
18+ ocsigen: ext: [INFO] host found! local-test: 0 matches .*
19+ ocsigen: ext: staticmod: [INFO] Is it a static file?
20+ ocsigen: local-file: [INFO] Testing " ./empty_dir/" .
21+ ocsigen: local-file: [INFO] Testing " ./empty_dir/index.html" as possible index .
22+ ocsigen: local-file: [INFO] No index and no listing
23+ ocsigen: access: connection for local-test from unix: // (): / doesnt_exists. html
24+ ocsigen: ext: [INFO] host found! local-test: 0 matches .*
25+ ocsigen: ext: staticmod: [INFO] Is it a static file?
26+ ocsigen: local-file: [INFO] Testing " ./doesnt_exists.html" .
1727 application: [WARNING] Command received: shutdown
1828
1929First response is not compressed:
@@ -37,3 +47,19 @@ Second response is compressed:
3747 transfer-encoding: chunked
3848
3949 Hello world
50+
51+ Querying a directory or a non-existing file should give " Not found" without
52+ compression:
53+
54+ $ mkdir empty_dir && curl_ empty_dir/ -- compressed
55+ HTTP/ 1.1 404 Not Found
56+ content-length: 16
57+ server: Ocsigen
58+
59+ Error: Not Found
60+ $ curl_ doesnt_exists. html -- compressed
61+ HTTP/ 1.1 404 Not Found
62+ content-length: 16
63+ server: Ocsigen
64+
65+ Error: Not Found
You can’t perform that action at this time.
0 commit comments