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_postform.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_postform.c')
-rw-r--r-- | src/testzzuf/daemontest_postform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testzzuf/daemontest_postform.c b/src/testzzuf/daemontest_postform.c index 817b0bc7..873c7fef 100644 --- a/src/testzzuf/daemontest_postform.c +++ b/src/testzzuf/daemontest_postform.c | |||
@@ -120,9 +120,9 @@ ahc_echo (void *cls, | |||
120 | MHD_post_process (pp, upload_data, *upload_data_size); | 120 | MHD_post_process (pp, upload_data, *upload_data_size); |
121 | if ((eok == 3) && (0 == *upload_data_size)) | 121 | if ((eok == 3) && (0 == *upload_data_size)) |
122 | { | 122 | { |
123 | response = MHD_create_response_from_data (strlen (url), | 123 | response = MHD_create_response_from_buffer (strlen (url), |
124 | (void *) url, | 124 | (void *) url, |
125 | MHD_NO, MHD_YES); | 125 | MHD_RESPMEM_MUST_COPY); |
126 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 126 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
127 | MHD_destroy_response (response); | 127 | MHD_destroy_response (response); |
128 | MHD_destroy_post_processor (pp); | 128 | MHD_destroy_post_processor (pp); |