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_put_chunked.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_put_chunked.c')
-rw-r--r-- | src/testzzuf/daemontest_put_chunked.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testzzuf/daemontest_put_chunked.c b/src/testzzuf/daemontest_put_chunked.c index d49478ee..47d0f0ba 100644 --- a/src/testzzuf/daemontest_put_chunked.c +++ b/src/testzzuf/daemontest_put_chunked.c | |||
@@ -111,8 +111,9 @@ ahc_echo (void *cls, | |||
111 | #endif | 111 | #endif |
112 | return MHD_YES; | 112 | return MHD_YES; |
113 | } | 113 | } |
114 | response = MHD_create_response_from_data (strlen (url), | 114 | response = MHD_create_response_from_buffer (strlen (url), |
115 | (void *) url, MHD_NO, MHD_YES); | 115 | (void *) url, |
116 | MHD_RESPMEM_MUST_COPY); | ||
116 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 117 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
117 | MHD_destroy_response (response); | 118 | MHD_destroy_response (response); |
118 | return ret; | 119 | return ret; |