aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_digestauth_concurrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_digestauth_concurrent.c')
-rw-r--r--src/testcurl/test_digestauth_concurrent.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c
index 5795c686..045b673d 100644
--- a/src/testcurl/test_digestauth_concurrent.c
+++ b/src/testcurl/test_digestauth_concurrent.c
@@ -293,9 +293,8 @@ ahc_echo (void *cls,
293 if ( (username == NULL) || 293 if ( (username == NULL) ||
294 (0 != strcmp (username, "testuser")) ) 294 (0 != strcmp (username, "testuser")) )
295 { 295 {
296 response = MHD_create_response_from_buffer (strlen (DENIED), 296 response = MHD_create_response_from_buffer_static (strlen (DENIED),
297 DENIED, 297 DENIED);
298 MHD_RESPMEM_PERSISTENT);
299 if (NULL == response) 298 if (NULL == response)
300 mhdErrorExitDesc ("MHD_create_response_from_buffer failed"); 299 mhdErrorExitDesc ("MHD_create_response_from_buffer failed");
301 ret = MHD_queue_auth_fail_response2 (connection, 300 ret = MHD_queue_auth_fail_response2 (connection,
@@ -318,9 +317,8 @@ ahc_echo (void *cls,
318 MHD_free (username); 317 MHD_free (username);
319 if (ret_e != MHD_DAUTH_OK) 318 if (ret_e != MHD_DAUTH_OK)
320 { 319 {
321 response = MHD_create_response_from_buffer (strlen (DENIED), 320 response = MHD_create_response_from_buffer_static (strlen (DENIED),
322 DENIED, 321 DENIED);
323 MHD_RESPMEM_PERSISTENT);
324 if (NULL == response) 322 if (NULL == response)
325 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed"); 323 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed");
326 ret = MHD_queue_auth_fail_response2 (connection, 324 ret = MHD_queue_auth_fail_response2 (connection,
@@ -335,9 +333,8 @@ ahc_echo (void *cls,
335 MHD_destroy_response (response); 333 MHD_destroy_response (response);
336 return ret; 334 return ret;
337 } 335 }
338 response = MHD_create_response_from_buffer (strlen (PAGE), 336 response = MHD_create_response_from_buffer_static (strlen (PAGE),
339 PAGE, 337 PAGE);
340 MHD_RESPMEM_PERSISTENT);
341 if (NULL == response) 338 if (NULL == response)
342 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed"); 339 mhdErrorExitDesc ("MHD_create_response_from_buffer() failed");
343 ret = MHD_queue_response (connection, 340 ret = MHD_queue_response (connection,