libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 7471f02d5d4fc7920a770644f9ce5cd6f31c5632
parent 1e43c47401cda652aec4f47585df7ee857d00d7d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 31 May 2026 00:13:31 +0200

fix minor version parsing for HTTP/2

Diffstat:
Msrc/mhd2/stream_process_request.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mhd2/stream_process_request.c b/src/mhd2/stream_process_request.c @@ -631,7 +631,7 @@ parse_http_version (struct MHD_Connection *restrict connection, ERR_RSP_REQ_HTTP_VER_IS_TOO_OLD); return false; } - else if ((2 == h[5] - '0') && ('0' == h[7] - '0')) + else if ((2 == h[5] - '0') && (0 == h[7] - '0')) connection->rq.http_ver = MHD_HTTP_VERSION_2; else connection->rq.http_ver = MHD_HTTP_VERSION_INVALID;