use untranslated file input mode, important on Windows

This commit is contained in:
Nils Durner
2010-01-20 21:07:20 +00:00
parent 8893ec6980
commit 1b0b8c014d
8 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ http_ahc (void *cls,
}
*ptr = NULL; /* reset when done */
file = fopen (&url[1], "r");
file = fopen (url, "rb");
if (file == NULL)
{
response = MHD_create_response_from_data (strlen (EMPTY_PAGE),
@@ -142,7 +142,7 @@ http_ahc (void *cls,
}
else
{
stat (&url[1], &buf);
stat (url, &buf);
response = MHD_create_response_from_callback (buf.st_size, 32 * 1024, /* 32k PAGE_NOT_FOUND size */
&file_reader, file,
(MHD_ContentReaderFreeCallback)