aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_digestauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_digestauth.c')
-rw-r--r--src/testcurl/test_digestauth.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
index e05e4f31..6f22c1f2 100644
--- a/src/testcurl/test_digestauth.c
+++ b/src/testcurl/test_digestauth.c
@@ -282,9 +282,8 @@ ahc_echo (void *cls,
282 if ( (username == NULL) || 282 if ( (username == NULL) ||
283 (0 != strcmp (username, "testuser")) ) 283 (0 != strcmp (username, "testuser")) )
284 { 284 {
285 response = MHD_create_response_from_buffer (strlen (DENIED), 285 response = MHD_create_response_from_buffer_static (strlen (DENIED),
286 DENIED, 286 DENIED);
287 MHD_RESPMEM_PERSISTENT);
288 if (NULL == response) 287 if (NULL == response)
289 mhdErrorExitDesc ("MHD_create_response_from_buffer failed"); 288 mhdErrorExitDesc ("MHD_create_response_from_buffer failed");
290 ret = MHD_queue_auth_fail_response2 (connection, 289 ret = MHD_queue_auth_fail_response2 (connection,
@@ -307,9 +306,8 @@ ahc_echo (void *cls,
307 MHD_free (username); 306 MHD_free (username);
308 if (ret_e != MHD_DAUTH_OK) 307 if (ret_e != MHD_DAUTH_OK)
309 { 308 {
310 response = MHD_create_response_from_buffer (strlen (DENIED), 309 response = MHD_create_response_from_buffer_static (strlen (DENIED),
311 DENIED, 310 DENIED);
312 MHD_RESPMEM_PERSISTENT);
313 if (NULL == response) 311 if (NULL == response)
314 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed"); 312 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed");
315 ret = MHD_queue_auth_fail_response2 (connection, 313 ret = MHD_queue_auth_fail_response2 (connection,
@@ -324,9 +322,8 @@ ahc_echo (void *cls,
324 MHD_destroy_response (response); 322 MHD_destroy_response (response);
325 return ret; 323 return ret;
326 } 324 }
327 response = MHD_create_response_from_buffer (strlen (PAGE), 325 response = MHD_create_response_from_buffer_static (strlen (PAGE),
328 PAGE, 326 PAGE);
329 MHD_RESPMEM_PERSISTENT);
330 if (NULL == response) 327 if (NULL == response)
331 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed"); 328 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed");
332 ret = MHD_queue_response (connection, 329 ret = MHD_queue_response (connection,