From b6b8f3a3845415be9ab4cde0092f7ce925091bd1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 2 Jun 2019 15:38:03 +0200 Subject: test334: verify HTTP 204 response with chunked coding header Verifies that a bodyless response don't parse this content-related header. --- tests/data/test334 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tests/data/test334 (limited to 'tests/data/test334') diff --git a/tests/data/test334 b/tests/data/test334 new file mode 100644 index 000000000..c02a65b8d --- /dev/null +++ b/tests/data/test334 @@ -0,0 +1,44 @@ + + + +HTTP +204 + + +# Server-side + + +HTTP/1.1 204 No Content +Date: Mon, 13 Nov 2000 13:41:09 GMT +Server: myown/1.0 +Transfer-Encoding: chunked + + + + +# Client-side + + +http + + +HTTP 204 No content with chunked header + + +http://%HOSTIP:%HTTPPORT/want/334 + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /want/334 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + -- cgit v1.2.3