From f68e67271586125c06f33297a245a920d325584e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 9 Jan 2018 17:24:48 +1300 Subject: 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 --- tests/data/test178 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') 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 + +HTTP/1.1 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT + # @@ -27,7 +31,7 @@ moooooooooooo http -simple HTTP GET with negative Content-Length +HTTP response with negative Content-Length http://%HOSTIP:%HTTPPORT/178 @@ -46,5 +50,8 @@ Host: %HOSTIP:%HTTPPORT Accept: */* + +8 + -- cgit v1.2.3