Commit 42e99cdb5fd10a7214de4dba50c4ce9d8ded325d

Baptiste 2024-08-12T12:41:27

fix tests: wip

diff --git a/http/http_request.c b/http/http_request.c
index e019ca3..2da7057 100644
--- a/http/http_request.c
+++ b/http/http_request.c
@@ -42,12 +42,8 @@ s_tag * http_request_buf_parse (s_tag *req, s_buf *buf)
     goto restore;
   if (r > 0)
     tmp_req.method = sym_1("head");
-  if (! tmp_req.method) {
-    err_write_1("http_request_buf_parse: no method: ");
-    err_inspect_buf(buf);
-    err_write_1("\n");
+  if (! tmp_req.method)
     goto restore;
-  }
   if (false) {
     err_write_1("http_request_buf_parse: method: ");
     err_inspect_sym(&tmp_req.method);
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index bc21d21..1a3badf 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -19,6 +19,7 @@ defmodule HTTPd do
         res = router(req)
         r = HTTP.Response.buf_write(res, client.buf_rw.w,
           req.method != :head)
+        puts("#{res.code} #{res.message} #{req.method} #{req.url}")
       end
     end
   end