diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-04 12:40:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-04 12:40:03 +0000 |
commit | 43542a78c6bfc10dc06196c0702b802eb6a45591 (patch) | |
tree | 3857b4ec8cd7ce3c8cbba77de74902cdd6b92c10 /src/testzzuf/daemontest_get.c | |
parent | 3af8f4ce646d29cd5942a1e3dda3b7ed03a82af6 (diff) | |
download | libmicrohttpd-43542a78c6bfc10dc06196c0702b802eb6a45591.tar.gz libmicrohttpd-43542a78c6bfc10dc06196c0702b802eb6a45591.zip |
introducing MHD_create_response_from_buffer, deprecating MHD_create_response_from_data
Diffstat (limited to 'src/testzzuf/daemontest_get.c')
-rw-r--r-- | src/testzzuf/daemontest_get.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testzzuf/daemontest_get.c b/src/testzzuf/daemontest_get.c index ed0e7719..4aed7fb5 100644 --- a/src/testzzuf/daemontest_get.c +++ b/src/testzzuf/daemontest_get.c | |||
@@ -81,8 +81,9 @@ ahc_echo (void *cls, | |||
81 | return MHD_YES; | 81 | return MHD_YES; |
82 | } | 82 | } |
83 | *unused = NULL; | 83 | *unused = NULL; |
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 | if (ret == MHD_NO) | 89 | if (ret == MHD_NO) |