libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit fd609acd9e569fdfff0b6f01cb976e051e9ef7a0
parent d964b3ef85e30bd5620438e9a037b5895ecabe3e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 19 Sep 2021 18:33:59 +0300

Partial revert "postprocessor: use NULL for 'data' for callback if no value is present"

This reverts commit 1e314fd50a9ba0357d3a722ebcc7c125a37c06b1.

The API change postponed until the next MHD version

Diffstat:
Msrc/include/microhttpd.h | 2+-
Msrc/microhttpd/postprocessor.c | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -2448,7 +2448,7 @@ typedef void * @param content_type mime-type of the data, NULL if not known * @param transfer_encoding encoding of the data, NULL if not known * @param data pointer to @a size bytes of data at the - * specified offset, NULL if no value is present + * specified offset * @param off offset of data in the overall value * @param size number of bytes in @a data available * @return #MHD_YES to continue iterating, diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c @@ -454,8 +454,7 @@ process_value (struct MHD_PostProcessor *pp, NULL, NULL, NULL, - ((0 != xoff) || (0 != pp->value_offset) || - (NULL != value_end)) ? xbuf : NULL, + xbuf, pp->value_offset, xoff)) {