introducing MHD_create_response_from_buffer, deprecating MHD_create_response_from_data

This commit is contained in:
Christian Grothoff
2011-01-04 12:40:03 +00:00
parent 3af8f4ce64
commit 43542a78c6
49 changed files with 297 additions and 143 deletions
+3 -3
View File
@@ -144,9 +144,9 @@ http_ahc (void *cls,
file = NULL;
if (file == NULL)
{
response = MHD_create_response_from_data (strlen (EMPTY_PAGE),
(void *) EMPTY_PAGE,
MHD_NO, MHD_NO);
response = MHD_create_response_from_buffer (strlen (EMPTY_PAGE),
(void *) EMPTY_PAGE,
MHD_RESPMEM_PERSISTENT);
ret = MHD_queue_response (connection, MHD_HTTP_NOT_FOUND, response);
MHD_destroy_response (response);
}