commit bf7c90c30f7c6c0227fb873bfb1f361f03e6b1f7
parent 140ddc5278469da8273266903e73d3459db85569
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 2 Jun 2019 22:13:00 +0200
clarify return value is intentionally ignored
Diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -924,12 +924,12 @@ MHD_lookup_connection_value (struct MHD_Connection *connection,
const char *value;
value = NULL;
- MHD_lookup_connection_value_n (connection,
- kind,
- key,
- (NULL == key) ? 0 : strlen(key),
- &value,
- NULL);
+ (void) MHD_lookup_connection_value_n (connection,
+ kind,
+ key,
+ (NULL == key) ? 0 : strlen(key),
+ &value,
+ NULL);
return value;
}
@@ -1811,9 +1811,9 @@ build_header_response (struct MHD_Connection *connection)
simply only force adding a content-length header if this
is not a 'connect' or if the response is not empty
(which is kind of more sane, because if some crazy
- application did return content with a 2xx status code,
+ application did return content with a 2xx status code,
then having a content-length might again be a good idea).
-
+
Note that the change from 'SHOULD NOT' to 'MUST NOT' is
a recent development of the HTTP 1.1 specification.
*/