aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/largepost.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/largepost.c')
-rw-r--r--doc/examples/largepost.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c
index 8669bc28..45c4ad03 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -13,12 +13,6 @@
13#include <string.h> 13#include <string.h>
14#include <microhttpd.h> 14#include <microhttpd.h>
15 15
16#ifdef _MSC_VER
17#ifndef strcasecmp
18#define strcasecmp(a,b) _stricmp ((a),(b))
19#endif /* !strcasecmp */
20#endif /* _MSC_VER */
21
22#if defined(_MSC_VER) && _MSC_VER + 0 <= 1800 16#if defined(_MSC_VER) && _MSC_VER + 0 <= 1800
23/* Substitution is OK while return value is not used */ 17/* Substitution is OK while return value is not used */
24#define snprintf _snprintf 18#define snprintf _snprintf
@@ -236,7 +230,7 @@ answer_to_connection (void *cls,
236 con_info->answercode = 0; /* none yet */ 230 con_info->answercode = 0; /* none yet */
237 con_info->fp = NULL; 231 con_info->fp = NULL;
238 232
239 if (0 == strcasecmp (method, MHD_HTTP_METHOD_POST)) 233 if (0 == strcmp (method, MHD_HTTP_METHOD_POST))
240 { 234 {
241 con_info->postprocessor = 235 con_info->postprocessor =
242 MHD_create_post_processor (connection, 236 MHD_create_post_processor (connection,
@@ -264,7 +258,7 @@ answer_to_connection (void *cls,
264 return MHD_YES; 258 return MHD_YES;
265 } 259 }
266 260
267 if (0 == strcasecmp (method, MHD_HTTP_METHOD_GET)) 261 if (0 == strcmp (method, MHD_HTTP_METHOD_GET))
268 { 262 {
269 /* We just return the standard form for uploads on all GET requests */ 263 /* We just return the standard form for uploads on all GET requests */
270 char buffer[1024]; 264 char buffer[1024];
@@ -278,7 +272,7 @@ answer_to_connection (void *cls,
278 MHD_HTTP_OK); 272 MHD_HTTP_OK);
279 } 273 }
280 274
281 if (0 == strcasecmp (method, MHD_HTTP_METHOD_POST)) 275 if (0 == strcmp (method, MHD_HTTP_METHOD_POST))
282 { 276 {
283 struct connection_info_struct *con_info = *req_cls; 277 struct connection_info_struct *con_info = *req_cls;
284 278