diff options
Diffstat (limited to 'src/testcurl/daemontest_parse_cookies.c')
-rw-r--r-- | src/testcurl/daemontest_parse_cookies.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testcurl/daemontest_parse_cookies.c b/src/testcurl/daemontest_parse_cookies.c index bfa8f860..16e0aecd 100644 --- a/src/testcurl/daemontest_parse_cookies.c +++ b/src/testcurl/daemontest_parse_cookies.c | |||
@@ -95,8 +95,9 @@ ahc_echo (void *cls, | |||
95 | hdr = MHD_lookup_connection_value (connection, MHD_COOKIE_KIND, "name4"); | 95 | hdr = MHD_lookup_connection_value (connection, MHD_COOKIE_KIND, "name4"); |
96 | if ((hdr == NULL) || (0 != strcmp (hdr, "var4 with spaces"))) | 96 | if ((hdr == NULL) || (0 != strcmp (hdr, "var4 with spaces"))) |
97 | abort (); | 97 | abort (); |
98 | response = MHD_create_response_from_data (strlen (url), | 98 | response = MHD_create_response_from_buffer (strlen (url), |
99 | (void *) url, MHD_NO, MHD_YES); | 99 | (void *) url, |
100 | MHD_RESPMEM_PERSISTENT); | ||
100 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 101 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
101 | MHD_destroy_response (response); | 102 | MHD_destroy_response (response); |
102 | if (ret == MHD_NO) | 103 | if (ret == MHD_NO) |