aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/responseheaders.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/responseheaders.c')
-rw-r--r--doc/examples/responseheaders.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c
index a71187af..5b16974f 100644
--- a/doc/examples/responseheaders.c
+++ b/doc/examples/responseheaders.c
@@ -37,14 +37,14 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
37 MHD_create_response_from_buffer (strlen (errorstr), 37 MHD_create_response_from_buffer (strlen (errorstr),
38 (void *) errorstr, 38 (void *) errorstr,
39 MHD_RESPMEM_PERSISTENT); 39 MHD_RESPMEM_PERSISTENT);
40 if (response) 40 if (NULL != response)
41 { 41 {
42 ret = 42 ret =
43 MHD_queue_response (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, 43 MHD_queue_response (connection, MHD_HTTP_INTERNAL_SERVER_ERROR,
44 response); 44 response);
45 MHD_destroy_response (response); 45 MHD_destroy_response (response);
46 46
47 return MHD_YES; 47 return ret;
48 } 48 }
49 else 49 else
50 return MHD_NO; 50 return MHD_NO;