Commit 9c1098b9fb29d9f255bb9095021419ae0120ecb9

Baptiste 2024-08-07T16:23:47

deleted useless body

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 2c0691b..533010e 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -104,15 +104,6 @@ defmodule HTTPd do
     path = root_dir + request.url
     if File.exists?(path) do
       body = File.read(path)
-      body = "<html>
-  <head>
-    <title>#{request.url}</title>
-  </head>
-  <body>
-    #{body}
-  </body>
-</html>
-"
       %HTTP.Response{body: body}
     else
       error_404_page(request)