diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-19 18:33:59 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-19 18:33:59 +0300 |
commit | fd609acd9e569fdfff0b6f01cb976e051e9ef7a0 (patch) | |
tree | 99f41ad76a33a8d75218080255fc2497e0555a49 | |
parent | d964b3ef85e30bd5620438e9a037b5895ecabe3e (diff) | |
download | libmicrohttpd-fd609acd9e569fdfff0b6f01cb976e051e9ef7a0.tar.gz libmicrohttpd-fd609acd9e569fdfff0b6f01cb976e051e9ef7a0.zip |
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
-rw-r--r-- | src/include/microhttpd.h | 2 | ||||
-rw-r--r-- | src/microhttpd/postprocessor.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index d10ed759..b57019d1 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -2448,7 +2448,7 @@ typedef void | |||
2448 | * @param content_type mime-type of the data, NULL if not known | 2448 | * @param content_type mime-type of the data, NULL if not known |
2449 | * @param transfer_encoding encoding of the data, NULL if not known | 2449 | * @param transfer_encoding encoding of the data, NULL if not known |
2450 | * @param data pointer to @a size bytes of data at the | 2450 | * @param data pointer to @a size bytes of data at the |
2451 | * specified offset, NULL if no value is present | 2451 | * specified offset |
2452 | * @param off offset of data in the overall value | 2452 | * @param off offset of data in the overall value |
2453 | * @param size number of bytes in @a data available | 2453 | * @param size number of bytes in @a data available |
2454 | * @return #MHD_YES to continue iterating, | 2454 | * @return #MHD_YES to continue iterating, |
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c index d0b018c7..d03260de 100644 --- a/src/microhttpd/postprocessor.c +++ b/src/microhttpd/postprocessor.c | |||
@@ -454,8 +454,7 @@ process_value (struct MHD_PostProcessor *pp, | |||
454 | NULL, | 454 | NULL, |
455 | NULL, | 455 | NULL, |
456 | NULL, | 456 | NULL, |
457 | ((0 != xoff) || (0 != pp->value_offset) || | 457 | xbuf, |
458 | (NULL != value_end)) ? xbuf : NULL, | ||
459 | pp->value_offset, | 458 | pp->value_offset, |
460 | xoff)) | 459 | xoff)) |
461 | { | 460 | { |