libmicrohttpd2

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

commit 5d52796e849868d8b0927b9a5de805f955aeaad5
parent 690f9cf9a8a5c9439ce1499bc249b0dcca93d05a
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Thu,  9 Jul 2026 00:31:36 +0200

test_incompatible: added more test with weird HTTP versions

Diffstat:
Msrc/tests/raw/test_incompatible.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/tests/raw/test_incompatible.c b/src/tests/raw/test_incompatible.c @@ -397,6 +397,17 @@ static struct Test tests_must[] = { }, #endif { + .name = "HTTP/1.1 request with HTTP/0.o version", + .upload = "GET / HTTP/0.o\r\nHost: example.com\r\n\r\n", + /* Version must be "digit dot digit" + * RFC 9112, Section 2.3 */ + }, + { + .name = "HTTP/1.1 request with HTTP/0.9 version", + .upload = "GET / HTTP/0.9\r\nHost: example.com\r\n\r\n", + /* HTTP versions before HTTP/1.0 are not supported */ + }, + { .name = "HTTP/1.1 request with HTTP/1.10 version", .upload = "GET / HTTP/1.10\r\nHost: example.com\r\n\r\n", /* Version must be "digit dot digit"