Commit df79bb29d13fceed215e8c2c60de6db2d8af12f7

Thomas de Grivel 2024-07-31T13:25:55

fix dlopen in lib/kc3/0.1/http/*.kc3

diff --git a/lib/kc3/0.1/http/request.kc3 b/lib/kc3/0.1/http/request.kc3
index c44c141..1debeed 100644
--- a/lib/kc3/0.1/http/request.kc3
+++ b/lib/kc3/0.1/http/request.kc3
@@ -5,6 +5,8 @@ defmodule HTTP.Request do
              protocol: "HTTP/1.1",
              headers: []]
 
+  dlopen(__DIR__ + "../http.so")
+
   def buf_parse = cfn HTTP.Request "http_request_buf_parse" (Result, Buf)
 
 end
diff --git a/lib/kc3/0.1/http/response.kc3 b/lib/kc3/0.1/http/response.kc3
index 60d03f1..8630e6b 100644
--- a/lib/kc3/0.1/http/response.kc3
+++ b/lib/kc3/0.1/http/response.kc3
@@ -6,7 +6,7 @@ defmodule HTTP.Response do
              headers: [],
              body: ""]
 
-  dlopen(__DIR__ + "/http.so")
+  dlopen(__DIR__ + "../http.so")
 
   def default_messages = [{(U16) 200, "OK"},
                           {(U16) 404, "Not Found"},