libmicrohttpd

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

commit 05af4aa49c5530e9fb54a7ce18d29e327fbabd7f
parent 3d0516f447ef3ce5567bbe60e15d4ad4633751cd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  1 Jun 2016 20:13:39 +0000

off-by-1

Diffstat:
Msrc/microhttpd/connection.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -994,7 +994,7 @@ build_header_response (struct MHD_Connection *connection) if ( (MHD_SIZE_UNKNOWN != connection->response->total_size) && (MHD_HTTP_NO_CONTENT != rc) && (MHD_HTTP_NOT_MODIFIED != rc) && - (MHD_HTTP_OK < rc) && + (MHD_HTTP_OK <= rc) && (NULL == have_content_length) && ( (NULL == connection->method) || (! MHD_str_equal_caseless_ (connection->method, @@ -3108,7 +3108,8 @@ MHD_queue_response (struct MHD_Connection *connection, connection->response = response; connection->responseCode = status_code; if ( ( (NULL != connection->method) && - (MHD_str_equal_caseless_ (connection->method, MHD_HTTP_METHOD_HEAD)) ) || + (MHD_str_equal_caseless_ (connection->method, + MHD_HTTP_METHOD_HEAD)) ) || (MHD_HTTP_OK > status_code) || (MHD_HTTP_NO_CONTENT == status_code) || (MHD_HTTP_NOT_MODIFIED == status_code) )