Hi Samuel,

I have forgotten to attach the patch. Sorry.

Gianluca

Il giorno mer 14 gen 2026 alle ore 12:13 Gianluca Cannata
<[email protected]> ha scritto:
>
> Hi Samuel,
>
> here the second patch in the series that fixes the HTTP GET request
> when the httpfs translator tries to fill the node with the file
> content.
>
> Sincerely,
>
> Gianluca
Index: httpfs/http.c
===================================================================
--- httpfs.orig/http.c
+++ httpfs/http.c
@@ -278,7 +278,7 @@ error_t fill_dirnode (struct netnode *di
                                        strcat(conn_req,"/");
                        }
                        comm_buf=(char *)malloc((strlen(conn_req)+20)*sizeof(char));
-                       sprintf(comm_buf,"GET %s HTTP/1.0",conn_req);
+                       sprintf(comm_buf,"GET %s HTTP/1.0\r\nHost: %s\r\n\r\n",conn_req,url);
 
                        nd = httpfs_make_node (go->f_type,url,conn_req,comm_buf,f_name);
                        if (!nd)

Reply via email to