Commit 1d8f6dc8dc32e5481711e972e21fce61ce276840

Thomas de Grivel 2024-09-05T17:44:12

wip httpd

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 0bff7d0..b14ea4c 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -127,7 +127,7 @@ defmodule HTTPd do
       dir_slash = if dir? do "/" else "" end
       path = "#{request.url}#{slash}#{file}#{dir_slash}"
       mode = if dir? do "dr-xr-xr-x" else "-r--r--r--" end
-      "<li>#{mode} <a href=\"#{path}\">#{file}#{dir_slash}</a></li>\n"
+      "<li>#{mode} <a href=\"#{path}\">#{file}</a>#{dir_slash}</li>\n"
     }
     body = """<html>
   <head>
diff --git a/test/httpd/doc b/test/httpd/doc
new file mode 120000
index 0000000..7e57b0f
--- /dev/null
+++ b/test/httpd/doc
@@ -0,0 +1 @@
+../../doc
\ No newline at end of file