diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c index 2e9db4c2..4df9e359 100644 --- a/src/examples/https_fileserver_example.c +++ b/src/examples/https_fileserver_example.c @@ -137,7 +137,7 @@ http_ahc (void *cls, } *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"); else