aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test178
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-01-09 17:24:48 +1300
committerDaniel Stenberg <daniel@haxx.se>2018-01-13 22:49:04 +0100
commitf68e67271586125c06f33297a245a920d325584e (patch)
tree288fa688cb4907409ba60c4453266b896797ab4e /tests/data/test178
parent0616dfa1e08c25ec8ff0f06c014bd3836b365049 (diff)
HTTP: bail out on negative Content-Length: values
... and make the max filesize check trigger if the value is too big. Updates test 178. Reported-by: Brad Spencer Fixes #2212 Closes #2223
Diffstat (limited to 'tests/data/test178')
-rw-r--r--tests/data/test1789
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/data/test178 b/tests/data/test178
index 7481467df..d22d8149f 100644
--- a/tests/data/test178
+++ b/tests/data/test178
@@ -18,6 +18,10 @@ Funny-head: yesyes
moooooooooooo
</data>
+<datacheck>
+HTTP/1.1 200 OK swsclose
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+</datacheck>
</reply>
#
@@ -27,7 +31,7 @@ moooooooooooo
http
</server>
<name>
-simple HTTP GET with negative Content-Length
+HTTP response with negative Content-Length
</name>
<command>
http://%HOSTIP:%HTTPPORT/178
@@ -46,5 +50,8 @@ Host: %HOSTIP:%HTTPPORT
Accept: */*
</protocol>
+<errorcode>
+8
+</errorcode>
</verify>
</testcase>