diff options
Diffstat (limited to 'doc/chapters/basicauthentication.inc')
-rw-r--r-- | doc/chapters/basicauthentication.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/chapters/basicauthentication.inc b/doc/chapters/basicauthentication.inc index 8c7c241c..bbdd3641 100644 --- a/doc/chapters/basicauthentication.inc +++ b/doc/chapters/basicauthentication.inc | |||
@@ -107,8 +107,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
107 | { | 107 | { |
108 | const char *page = "<html><body>Go away.</body></html>"; | 108 | const char *page = "<html><body>Go away.</body></html>"; |
109 | response = | 109 | response = |
110 | MHD_create_response_from_data (strlen (page), (void *) page, MHD_NO, | 110 | MHD_create_response_from_buffer (strlen (page), (void *) page, |
111 | MHD_NO); | 111 | MHD_RESPMEM_PERSISTENT); |
112 | ret = MHD_queue_basic_auth_fail_response (connection, | 112 | ret = MHD_queue_basic_auth_fail_response (connection, |
113 | "my realm", | 113 | "my realm", |
114 | response); | 114 | response); |
@@ -117,8 +117,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
117 | { | 117 | { |
118 | const char *page = "<html><body>A secret.</body></html>"; | 118 | const char *page = "<html><body>A secret.</body></html>"; |
119 | response = | 119 | response = |
120 | MHD_create_response_from_data (strlen (page), (void *) page, MHD_NO, | 120 | MHD_create_response_from_buffer (strlen (page), (void *) page, |
121 | MHD_NO); | 121 | MHD_RESPMEM_PERSISTENT); |
122 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 122 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
123 | } | 123 | } |
124 | MHD_destroy_response (response); | 124 | MHD_destroy_response (response); |