libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit bdf374b29a1fd2961d0050a259d3f1018070b5f7
parent cf17555746a4f8aaefec1832bb5201c845735414
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 30 Jul 2010 04:53:42 +0000

fixing Mantis 1594

Diffstat:
Msrc/examples/https_fileserver_example.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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