[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37020 - libmicrohttpd/doc/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37020 - libmicrohttpd/doc/examples |
Date: |
Mon, 11 Apr 2016 16:08:30 +0200 |
Author: Karlson2k
Date: 2016-04-11 16:08:30 +0200 (Mon, 11 Apr 2016)
New Revision: 37020
Modified:
libmicrohttpd/doc/examples/largepost.c
Log:
Added check result of MHD_post_process() in largepost.c
Modified: libmicrohttpd/doc/examples/largepost.c
===================================================================
--- libmicrohttpd/doc/examples/largepost.c 2016-04-11 14:08:28 UTC (rev
37019)
+++ libmicrohttpd/doc/examples/largepost.c 2016-04-11 14:08:30 UTC (rev
37020)
@@ -65,6 +65,8 @@
"<html><body>An internal server error has occured.</body></html>";
const char *fileexistspage =
"<html><body>This file already exists.</body></html>";
+const char const *postprocerror =
+ "<html><head><title>Error</title></head><body>Error processing POST
data</body></html>";
static int
@@ -241,9 +243,14 @@
if (0 != *upload_data_size)
{
- MHD_post_process (con_info->postprocessor,
- upload_data,
- *upload_data_size);
+ if (MHD_post_process (con_info->postprocessor,
+ upload_data,
+ *upload_data_size) != MHD_YES)
+ {
+ return send_page (connection,
+ postprocerror,
+ MHD_HTTP_BAD_REQUEST);
+ }
*upload_data_size = 0;
return MHD_YES;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37020 - libmicrohttpd/doc/examples,
gnunet <=