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_get.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_get.c')
-rw-r--r-- | src/testcurl/test_get.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c index a60c0797..8fe1c771 100644 --- a/src/testcurl/test_get.c +++ b/src/testcurl/test_get.c | |||
@@ -765,9 +765,7 @@ ahc_empty (void *cls, | |||
765 | return MHD_YES; | 765 | return MHD_YES; |
766 | } | 766 | } |
767 | *req_cls = NULL; | 767 | *req_cls = NULL; |
768 | response = MHD_create_response_from_buffer (0, | 768 | response = MHD_create_response_empty (MHD_RF_NONE); |
769 | NULL, | ||
770 | MHD_RESPMEM_PERSISTENT); | ||
771 | ret = MHD_queue_response (connection, | 769 | ret = MHD_queue_response (connection, |
772 | MHD_HTTP_OK, | 770 | MHD_HTTP_OK, |
773 | response); | 771 | response); |