diff options
Diffstat (limited to 'src/testcurl/test_digestauth_with_arguments.c')
-rw-r--r-- | src/testcurl/test_digestauth_with_arguments.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/testcurl/test_digestauth_with_arguments.c b/src/testcurl/test_digestauth_with_arguments.c index 773fd5f5..843e4684 100644 --- a/src/testcurl/test_digestauth_with_arguments.c +++ b/src/testcurl/test_digestauth_with_arguments.c | |||
@@ -104,9 +104,8 @@ ahc_echo (void *cls, | |||
104 | if ( (username == NULL) || | 104 | if ( (username == NULL) || |
105 | (0 != strcmp (username, "testuser")) ) | 105 | (0 != strcmp (username, "testuser")) ) |
106 | { | 106 | { |
107 | response = MHD_create_response_from_buffer (strlen (DENIED), | 107 | response = MHD_create_response_from_buffer_static (strlen (DENIED), |
108 | DENIED, | 108 | DENIED); |
109 | MHD_RESPMEM_PERSISTENT); | ||
110 | ret = MHD_queue_auth_fail_response2 (connection, realm, | 109 | ret = MHD_queue_auth_fail_response2 (connection, realm, |
111 | MY_OPAQUE, | 110 | MY_OPAQUE, |
112 | response, | 111 | response, |
@@ -123,9 +122,8 @@ ahc_echo (void *cls, | |||
123 | MHD_free (username); | 122 | MHD_free (username); |
124 | if (ret_e != MHD_DAUTH_OK) | 123 | if (ret_e != MHD_DAUTH_OK) |
125 | { | 124 | { |
126 | response = MHD_create_response_from_buffer (strlen (DENIED), | 125 | response = MHD_create_response_from_buffer_static (strlen (DENIED), |
127 | DENIED, | 126 | DENIED); |
128 | MHD_RESPMEM_PERSISTENT); | ||
129 | if (NULL == response) | 127 | if (NULL == response) |
130 | return MHD_NO; | 128 | return MHD_NO; |
131 | ret = MHD_queue_auth_fail_response2 (connection, realm, | 129 | ret = MHD_queue_auth_fail_response2 (connection, realm, |
@@ -137,8 +135,8 @@ ahc_echo (void *cls, | |||
137 | MHD_destroy_response (response); | 135 | MHD_destroy_response (response); |
138 | return ret; | 136 | return ret; |
139 | } | 137 | } |
140 | response = MHD_create_response_from_buffer (strlen (PAGE), PAGE, | 138 | response = MHD_create_response_from_buffer_static (strlen (PAGE), |
141 | MHD_RESPMEM_PERSISTENT); | 139 | PAGE); |
142 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 140 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
143 | MHD_destroy_response (response); | 141 | MHD_destroy_response (response); |
144 | return ret; | 142 | return ret; |