diff options
Diffstat (limited to 'src/testzzuf/daemontest_long_header.c')
-rw-r--r-- | src/testzzuf/daemontest_long_header.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testzzuf/daemontest_long_header.c b/src/testzzuf/daemontest_long_header.c index 99b9e5e3..d285768f 100644 --- a/src/testzzuf/daemontest_long_header.c +++ b/src/testzzuf/daemontest_long_header.c | |||
@@ -81,8 +81,9 @@ ahc_echo (void *cls, | |||
81 | 81 | ||
82 | if (0 != strcmp (me, method)) | 82 | if (0 != strcmp (me, method)) |
83 | return MHD_NO; /* unexpected method */ | 83 | return MHD_NO; /* unexpected method */ |
84 | response = MHD_create_response_from_data (strlen (url), | 84 | response = MHD_create_response_from_buffer (strlen (url), |
85 | (void *) url, MHD_NO, MHD_YES); | 85 | (void *) url, |
86 | MHD_RESPMEM_MUST_COPY); | ||
86 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 87 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
87 | MHD_destroy_response (response); | 88 | MHD_destroy_response (response); |
88 | return ret; | 89 | return ret; |