1
0
mirror of https://github.com/lammertb/libhttp.git synced 2026-01-03 16:02:30 +03:00

Added test for byte range past EOF

This commit is contained in:
Sergey Lyubka
2012-09-29 18:56:23 +01:00
parent 6bd35a4c18
commit 2539a473fe

View File

@@ -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);