Commit b9b3831108d88c935b1f918a71643e9bd3bd21b9

Thomas de Grivel 2024-09-11T14:15:18

httpd: fix HEAD requests

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index a443bda..fff3441 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -46,7 +46,7 @@ defmodule HTTPd do
         res = router(req)
         FD.set_blocking(socket, true)
         r = HTTP.Response.buf_write(res, client.buf_rw.w,
-          req.method != :head)
+          req.method != HEAD)
         client_addr = if client.addr_str != "127.0.0.1" do
           client.addr_str
         else