commit 4cd409a21e9c290f752043b2f6380ca381674f16
parent 914e7d9bda7ee8ed47bd99dffbfcc17917cd7ea7
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 7 Dec 2025 00:36:36 +0100
include test for OTHER
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/tests/raw/test_raw.c b/src/tests/raw/test_raw.c
@@ -235,6 +235,15 @@ static struct Test tests[] = {
.expect_parser = "H-Host:example.com\nQ-expr:a=b",
},
{
+ .name = "PATCH request",
+ .upload =
+ "PATCH /resource HTTP/1.1\r\nHost: example.com\r\nContent-Length: 0\r\n\r\n",
+ .expect_method = MHD_HTTP_METHOD_OTHER,
+ .expect_path = "/resource",
+ .expect_upload_size = 0,
+ .expect_parser = "H-Host:example.com\nH-Content-Length:0",
+ },
+ {
.name = "Mixed query parameters with and without values",
.upload =
"GET /?debug&level=5&verbose HTTP/1.1\r\nHost: example.com\r\n\r\n",