Skip to content

Commit b6b8f3a

Browse files
committed
test334: verify HTTP 204 response with chunked coding header
Verifies that a bodyless response don't parse this content-related header.
1 parent 2e5ceb3 commit b6b8f3a

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

tests/data/Makefile.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test298 test299 test300 test301 test302 test303 test304 test305 test306 \
5757
test307 test308 test309 test310 test311 test312 test313 test314 test315 \
5858
test316 test317 test318 test319 test320 test321 test322 test323 test324 \
5959
test325 test326 test327 test328 test329 test330 test331 test332 test333 \
60-
\
60+
test334 \
6161
test340 \
6262
\
6363
test350 test351 test352 test353 test354 test355 test356 \

tests/data/test334

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<testcase>
2+
<info>
3+
<keywords>
4+
HTTP
5+
204
6+
</keywords>
7+
</info>
8+
# Server-side
9+
<reply>
10+
<data>
11+
HTTP/1.1 204 No Content
12+
Date: Mon, 13 Nov 2000 13:41:09 GMT
13+
Server: myown/1.0
14+
Transfer-Encoding: chunked
15+
16+
</data>
17+
</reply>
18+
19+
# Client-side
20+
<client>
21+
<server>
22+
http
23+
</server>
24+
<name>
25+
HTTP 204 No content with chunked header
26+
</name>
27+
<command>
28+
http://%HOSTIP:%HTTPPORT/want/334
29+
</command>
30+
</client>
31+
32+
# Verify data after the test has been "shot"
33+
<verify>
34+
<strip>
35+
^User-Agent:.*
36+
</strip>
37+
<protocol>
38+
GET /want/334 HTTP/1.1
39+
Host: %HOSTIP:%HTTPPORT
40+
Accept: */*
41+
42+
</protocol>
43+
</verify>
44+
</testcase>

0 commit comments

Comments
 (0)