diff options
author | Jan Kneschke <jan@kneschke.de> | 2007-08-18 11:14:12 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2007-08-18 11:14:12 +0000 |
commit | f67cdb67df59e921c19493b8616b7d8e80807d47 (patch) | |
tree | 8f14b5e4b0ce3d5c52ce548cfdbab3aad0549242 /tests/request.t | |
parent | 5bc539b63e56525235eda504894e7919c3c18866 (diff) | |
download | lighttpd-git-f67cdb67df59e921c19493b8616b7d8e80807d47.tar.gz |
fixed handling of duplicate If-Modified-Since to return 304
- don't append the second string to the first, but free it instead
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1947 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/request.t')
-rwxr-xr-x | tests/request.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/request.t b/tests/request.t index 8ece7218..f7bc19c8 100755 --- a/tests/request.t +++ b/tests/request.t @@ -339,12 +339,12 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ]; ok($tf->handle_http($t) == 0, 'HEAD with Content-Length'); $t->{REQUEST} = ( <<EOF -GET / HTTP/1.0 -If-Modified-Since: Sun, 1970 Jan 01 00:00:01 GMT -If-Modified-Since: Sun, 1970 Jan 01 00:00:01 GMT +GET /index.html HTTP/1.0 +If-Modified-Since: Sun, 01 Jan 2100 00:00:02 GMT +If-Modified-Since: Sun, 01 Jan 2100 00:00:02 GMT EOF ); -$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ]; +$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 304 } ]; ok($tf->handle_http($t) == 0, 'Duplicate If-Mod-Since, with equal timestamps'); $t->{REQUEST} = ( "GET / HTTP/1.0\r\nIf-Modified-Since: \0\r\n\r\n" ); |