diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-14 15:07:47 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-14 15:07:47 +0300 |
commit | 85ae657849685d27b79ae6b14f7248d81ec99d2c (patch) | |
tree | 5766712bc12b799cba3ee40058782b66d494d008 /src/testcurl/test_post.c | |
parent | 4fc1bbfd5bf3196e1f603e443b51ddec911305b4 (diff) | |
download | libmicrohttpd-85ae657849685d27b79ae6b14f7248d81ec99d2c.tar.gz libmicrohttpd-85ae657849685d27b79ae6b14f7248d81ec99d2c.zip |
Replaced MHD_RESPMEM_PERSISTENT usage in examples and code
New functions do not produce compiler warnings.
Diffstat (limited to 'src/testcurl/test_post.c')
-rw-r--r-- | src/testcurl/test_post.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c index 90b8f48a..e36391fd 100644 --- a/src/testcurl/test_post.c +++ b/src/testcurl/test_post.c | |||
@@ -610,8 +610,7 @@ ahc_cancel (void *cls, | |||
610 | { | 610 | { |
611 | *req_cls = "wibble"; | 611 | *req_cls = "wibble"; |
612 | /* We don't want the body. Send a 500. */ | 612 | /* We don't want the body. Send a 500. */ |
613 | response = MHD_create_response_from_buffer (0, NULL, | 613 | response = MHD_create_response_empty (MHD_RF_NONE); |
614 | MHD_RESPMEM_PERSISTENT); | ||
615 | ret = MHD_queue_response (connection, 500, response); | 614 | ret = MHD_queue_response (connection, 500, response); |
616 | if (ret != MHD_YES) | 615 | if (ret != MHD_YES) |
617 | fprintf (stderr, "Failed to queue response\n"); | 616 | fprintf (stderr, "Failed to queue response\n"); |