diff options
Diffstat (limited to 'src/testcurl/test_get_empty.c')
-rw-r--r-- | src/testcurl/test_get_empty.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/testcurl/test_get_empty.c b/src/testcurl/test_get_empty.c index fdbb2d42..32d6b16f 100644 --- a/src/testcurl/test_get_empty.c +++ b/src/testcurl/test_get_empty.c | |||
@@ -125,9 +125,7 @@ ahc_echo (void *cls, | |||
125 | return MHD_YES; | 125 | return MHD_YES; |
126 | } | 126 | } |
127 | *req_cls = NULL; | 127 | *req_cls = NULL; |
128 | response = MHD_create_response_from_buffer (0, | 128 | response = MHD_create_response_empty (MHD_RF_NONE); |
129 | NULL, | ||
130 | MHD_RESPMEM_PERSISTENT); | ||
131 | ret = MHD_queue_response (connection, | 129 | ret = MHD_queue_response (connection, |
132 | MHD_HTTP_NO_CONTENT, | 130 | MHD_HTTP_NO_CONTENT, |
133 | response); | 131 | response); |
@@ -723,9 +721,7 @@ ahc_empty (void *cls, | |||
723 | return MHD_YES; | 721 | return MHD_YES; |
724 | } | 722 | } |
725 | *req_cls = NULL; | 723 | *req_cls = NULL; |
726 | response = MHD_create_response_from_buffer (0, | 724 | response = MHD_create_response_empty (MHD_RF_NONE); |
727 | NULL, | ||
728 | MHD_RESPMEM_PERSISTENT); | ||
729 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 725 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
730 | MHD_destroy_response (response); | 726 | MHD_destroy_response (response); |
731 | if (ret == MHD_NO) | 727 | if (ret == MHD_NO) |