Nils Durner %!s(int64=16) %!d(string=hai) anos
pai
achega
3980b784cc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/examples/https_fileserver_example.c

+ 1 - 1
src/examples/https_fileserver_example.c

@@ -131,7 +131,7 @@ http_ahc (void *cls,
     }
   *ptr = NULL;                  /* reset when done */
 
-  file = fopen (url, "rb");
+  file = fopen (&url[1], "rb");
   if (file == NULL)
     {
       response = MHD_create_response_from_data (strlen (EMPTY_PAGE),