aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/examples/largepost.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c
index 56960d50..5bef59c4 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -206,7 +206,10 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
206 else 206 else
207 { 207 {
208 if (NULL != con_info->fp) 208 if (NULL != con_info->fp)
209 {
209 fclose (con_info->fp); 210 fclose (con_info->fp);
211 con_info->fp = NULL;
212 }
210 /* Now it is safe to open and inspect the file before calling send_page with a response */ 213 /* Now it is safe to open and inspect the file before calling send_page with a response */
211 return send_page (connection, con_info->answerstring, 214 return send_page (connection, con_info->answerstring,
212 con_info->answercode); 215 con_info->answercode);