[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10030 - libmicrohttpd/src/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10030 - libmicrohttpd/src/examples |
Date: |
Sun, 17 Jan 2010 23:15:23 +0100 |
Author: durner
Date: 2010-01-17 23:15:23 +0100 (Sun, 17 Jan 2010)
New Revision: 10030
Modified:
libmicrohttpd/src/examples/https_fileserver_example.c
Log:
don't use the first slash for paths
Modified: libmicrohttpd/src/examples/https_fileserver_example.c
===================================================================
--- libmicrohttpd/src/examples/https_fileserver_example.c 2010-01-17
21:08:17 UTC (rev 10029)
+++ libmicrohttpd/src/examples/https_fileserver_example.c 2010-01-17
22:15:23 UTC (rev 10030)
@@ -131,7 +131,7 @@
}
*ptr = NULL; /* reset when done */
- file = fopen (url, "r");
+ file = fopen (&url[1], "r");
if (file == NULL)
{
response = MHD_create_response_from_data (strlen (EMPTY_PAGE),
@@ -142,7 +142,7 @@
}
else
{
- stat (url, &buf);
+ stat (&url[1], &buf);
response = MHD_create_response_from_callback (buf.st_size, 32 * 1024,
/* 32k PAGE_NOT_FOUND size */
&file_reader, file,
(MHD_ContentReaderFreeCallback)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10030 - libmicrohttpd/src/examples,
gnunet <=