--- libmicrohttpd/src/examples/https_fileserver_example.c.orig 2010-07-24 15:24:50.000000000 +0000 +++ libmicrohttpd/src/examples/https_fileserver_example.c 2010-07-29 20:32:16.000000000 +0000 @@ -138,5 +138,5 @@ *ptr = NULL; /* reset when done */ - if ( (0 == stat (url, &buf)) && + if ( (0 == stat (&url[1], &buf)) && (S_ISREG (buf.st_mode)) ) file = fopen (&url[1], "rb");