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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c
index 87de25a0..e1fd6d9c 100644
--- a/src/daemon/postprocessor.c
+++ b/src/daemon/postprocessor.c
@@ -130,7 +130,7 @@ struct MHD_PostProcessor
130 130
131/** 131/**
132 * Create a PostProcessor. 132 * Create a PostProcessor.
133 * 133 *
134 * A PostProcessor can be used to (incrementally) 134 * A PostProcessor can be used to (incrementally)
135 * parse the data portion of a POST request. 135 * parse the data portion of a POST request.
136 * 136 *
@@ -260,7 +260,7 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
260 else if ((delta > 1) && (xbuf[delta - 2] == '%')) 260 else if ((delta > 1) && (xbuf[delta - 2] == '%'))
261 delta -= 2; 261 delta -= 2;
262 262
263 /* if we have an incomplete escape sequence, save it to 263 /* if we have an incomplete escape sequence, save it to
264 pp->xbuf for later */ 264 pp->xbuf for later */
265 if (delta < xoff) 265 if (delta < xoff)
266 { 266 {
@@ -332,14 +332,14 @@ try_match_header (const char *prefix, char *line, char **suffix)
332} 332}
333 333
334/** 334/**
335 * Decode multipart POST data. 335 * Decode multipart POST data.
336 * 336 *
337 * TODO: If the content-type is multipart/mixed, we do not do anything 337 * TODO: If the content-type is multipart/mixed, we do not do anything
338 * special. However, we should probably break the individual values 338 * special. However, we should probably break the individual values
339 * apart and give them to the callback individually (will require some 339 * apart and give them to the callback individually (will require some
340 * additional states & state). 340 * additional states & state).
341 * 341 *
342 * See http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4 342 * See http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4
343 */ 343 */
344static int 344static int
345post_process_multipart (struct MHD_PostProcessor *pp, 345post_process_multipart (struct MHD_PostProcessor *pp,
@@ -507,7 +507,7 @@ post_process_multipart (struct MHD_PostProcessor *pp,
507 newline++; 507 newline++;
508 if (newline + blen + 4 > pp->buffer_size) 508 if (newline + blen + 4 > pp->buffer_size)
509 { 509 {
510 /* boundary not in sight -- 510 /* boundary not in sight --
511 process data, then make room for more! */ 511 process data, then make room for more! */
512 if (MHD_NO == pp->ikvi (pp->cls, 512 if (MHD_NO == pp->ikvi (pp->cls,
513 MHD_POSTDATA_KIND, 513 MHD_POSTDATA_KIND,
@@ -622,9 +622,9 @@ END:
622 * Parse and process POST data. 622 * Parse and process POST data.
623 * Call this function when POST data is available 623 * Call this function when POST data is available
624 * (usually during an MHD_AccessHandlerCallback) 624 * (usually during an MHD_AccessHandlerCallback)
625 * with the upload_data and upload_data_size. 625 * with the upload_data and upload_data_size.
626 * Whenever possible, this will then cause calls 626 * Whenever possible, this will then cause calls
627 * to the MHD_IncrementalKeyValueIterator. 627 * to the MHD_IncrementalKeyValueIterator.
628 * 628 *
629 * @param pp the post processor 629 * @param pp the post processor
630 * @param post_data post_data_len bytes of POST data 630 * @param post_data post_data_len bytes of POST data