[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: Partial revert "postprocessor: us
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: Partial revert "postprocessor: use NULL for 'data' for callback if no value is present" |
Date: |
Sun, 19 Sep 2021 18:35:17 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new fd609acd Partial revert "postprocessor: use NULL for 'data' for
callback if no value is present"
fd609acd is described below
commit fd609acd9e569fdfff0b6f01cb976e051e9ef7a0
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Sep 19 18:33:59 2021 +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
---
src/include/microhttpd.h | 2 +-
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
* @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
index d0b018c7..d03260de 100644
--- 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))
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: Partial revert "postprocessor: use NULL for 'data' for callback if no value is present",
gnunet <=