mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
use untranslated file input mode, important on Windows
This commit is contained in:
1 parent
8893ec6980
commit
1b0b8c014d
8 files changed
+12
-12
No files matched your search
@@ -174,7 +174,7 @@ setup_ca_cert ()
|
||||
{
|
||||
FILE *cert_fd;
|
||||
|
||||
if (NULL == (cert_fd = fopen (ca_cert_file_name, "w+")))
|
||||
if (NULL == (cert_fd = fopen (ca_cert_file_name, "wb+")))
|
||||
{
|
||||
fprintf (stderr, "Error: failed to open `%s': %s\n",
|
||||
ca_cert_file_name, strerror (errno));
|
||||
|
||||
@@ -87,7 +87,7 @@ http_ahc (void *cls, struct MHD_Connection *connection,
|
||||
}
|
||||
*ptr = NULL; /* reset when done */
|
||||
|
||||
file = fopen (url, "r");
|
||||
file = fopen (url, "rb");
|
||||
if (file == NULL)
|
||||
{
|
||||
response = MHD_create_response_from_data (strlen (PAGE_NOT_FOUND),
|
||||
@@ -290,7 +290,7 @@ setup_test_file ()
|
||||
{
|
||||
FILE *test_fd;
|
||||
|
||||
if (NULL == (test_fd = fopen (TEST_FILE_NAME, "w+")))
|
||||
if (NULL == (test_fd = fopen (TEST_FILE_NAME, "wb+")))
|
||||
{
|
||||
fprintf (stderr, "Error: failed to open `%s': %s\n",
|
||||
TEST_FILE_NAME, strerror (errno));
|
||||
|
||||
Reference in new issue
Block a user