From 2539a473fe50edb0d88ad7307cec737b98be0676 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 29 Sep 2012 18:56:23 +0100 Subject: [PATCH] Added test for byte range past EOF --- test/test.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test.pl b/test/test.pl index 3d58342c..3d6fb68d 100644 --- a/test/test.pl +++ b/test/test.pl @@ -180,6 +180,9 @@ my $cmd = "$exe ". $cmd .= ' -cgi_interpreter perl' if on_windows(); spawn($cmd); +o("GET /hello.txt HTTP/1.1\nConnection: close\nRange: bytes=3-50\r\n\r\n", + 'Content-Length: 15\s', 'Range past the file end'); + o("GET /hello.txt HTTP/1.1\n\n GET /hello.txt HTTP/1.0\n\n", 'HTTP/1.1 200.+keep-alive.+HTTP/1.1 200.+close', 'Request pipelining', 2);