diff options
Diffstat (limited to 'src/testcurl/daemontest_digestauth.c')
-rw-r--r-- | src/testcurl/daemontest_digestauth.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/daemontest_digestauth.c b/src/testcurl/daemontest_digestauth.c index 67006272..2fa9f49e 100644 --- a/src/testcurl/daemontest_digestauth.c +++ b/src/testcurl/daemontest_digestauth.c | |||
@@ -81,9 +81,9 @@ ahc_echo (void *cls, | |||
81 | if ( (username == NULL) || | 81 | if ( (username == NULL) || |
82 | (0 != strcmp (username, "testuser")) ) | 82 | (0 != strcmp (username, "testuser")) ) |
83 | { | 83 | { |
84 | response = MHD_create_response_from_data(strlen (DENIED), | 84 | response = MHD_create_response_from_buffer(strlen (DENIED), |
85 | DENIED, | 85 | DENIED, |
86 | MHD_NO, MHD_NO); | 86 | MHD_RESPMEM_PERSISTENT); |
87 | ret = MHD_queue_auth_fail_response(connection, realm, | 87 | ret = MHD_queue_auth_fail_response(connection, realm, |
88 | OPAQUE, | 88 | OPAQUE, |
89 | response, | 89 | response, |
@@ -99,9 +99,9 @@ ahc_echo (void *cls, | |||
99 | if ( (ret == MHD_INVALID_NONCE) || | 99 | if ( (ret == MHD_INVALID_NONCE) || |
100 | (ret == MHD_NO) ) | 100 | (ret == MHD_NO) ) |
101 | { | 101 | { |
102 | response = MHD_create_response_from_data(strlen (DENIED), | 102 | response = MHD_create_response_from_buffer(strlen (DENIED), |
103 | DENIED, | 103 | DENIED, |
104 | MHD_NO, MHD_NO); | 104 | MHD_RESPMEM_PERSISTENT); |
105 | if (NULL == response) | 105 | if (NULL == response) |
106 | return MHD_NO; | 106 | return MHD_NO; |
107 | ret = MHD_queue_auth_fail_response(connection, realm, | 107 | ret = MHD_queue_auth_fail_response(connection, realm, |
@@ -111,8 +111,8 @@ ahc_echo (void *cls, | |||
111 | MHD_destroy_response(response); | 111 | MHD_destroy_response(response); |
112 | return ret; | 112 | return ret; |
113 | } | 113 | } |
114 | response = MHD_create_response_from_data(strlen(PAGE), PAGE, | 114 | response = MHD_create_response_from_buffer(strlen(PAGE), PAGE, |
115 | MHD_NO, MHD_NO); | 115 | MHD_RESPMEM_PERSISTENT); |
116 | ret = MHD_queue_response(connection, MHD_HTTP_OK, response); | 116 | ret = MHD_queue_response(connection, MHD_HTTP_OK, response); |
117 | MHD_destroy_response(response); | 117 | MHD_destroy_response(response); |
118 | return ret; | 118 | return ret; |