aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/postprocessor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/postprocessor.c')
-rw-r--r--src/daemon/postprocessor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c
index 3ce715ee..87de25a0 100644
--- a/src/daemon/postprocessor.c
+++ b/src/daemon/postprocessor.c
@@ -164,7 +164,7 @@ MHD_create_post_processor (struct MHD_Connection *connection,
164 if ((0 != strcasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, 164 if ((0 != strcasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED,
165 encoding)) && 165 encoding)) &&
166 (0 != strncasecmp (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA, encoding, 166 (0 != strncasecmp (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA, encoding,
167 strlen(MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA)))) 167 strlen (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA))))
168 return NULL; 168 return NULL;
169 ret = malloc (sizeof (struct MHD_PostProcessor) + buffer_size + 1); 169 ret = malloc (sizeof (struct MHD_PostProcessor) + buffer_size + 1);
170 if (ret == NULL) 170 if (ret == NULL)
@@ -430,7 +430,7 @@ post_process_multipart (struct MHD_PostProcessor *pp,
430 pp->state = PP_Headers; 430 pp->state = PP_Headers;
431 break; 431 break;
432 } 432 }
433 /* fall through! */ 433 /* fall through! */
434 case PP_Headers: 434 case PP_Headers:
435 newline = 0; 435 newline = 0;
436 while ((newline + ioff < pp->buffer_pos) && 436 while ((newline + ioff < pp->buffer_pos) &&
@@ -476,8 +476,8 @@ post_process_multipart (struct MHD_PostProcessor *pp,
476 try_match_header ("Content-Type: ", &buf[ioff], &pp->content_type); 476 try_match_header ("Content-Type: ", &buf[ioff], &pp->content_type);
477 try_match_header ("Content-Transfer-Encoding: ", 477 try_match_header ("Content-Transfer-Encoding: ",
478 &buf[ioff], &pp->transfer_encoding); 478 &buf[ioff], &pp->transfer_encoding);
479 ioff += newline + 1; 479 ioff += newline + 1;
480 pp->state = PP_ExpectNewLineNOPT; 480 pp->state = PP_ExpectNewLineNOPT;
481 break; 481 break;
482 case PP_SkipRN: 482 case PP_SkipRN:
483 if (buf[ioff] == '\r') 483 if (buf[ioff] == '\r')