summaryrefslogtreecommitdiff
path: root/tests/request.t
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2007-08-21 15:05:50 +0000
committerJan Kneschke <jan@kneschke.de>2007-08-21 15:05:50 +0000
commit30748f202cf12ed9570456a27368996f4a03a3ac (patch)
tree1bc8de4880b014870e749d030dc3fd583f87ee97 /tests/request.t
parent470d32b8039600f3756b200dd9e3419141eb9c9a (diff)
downloadlighttpd1.4-30748f202cf12ed9570456a27368996f4a03a3ac.tar.gz
lighttpd1.4-30748f202cf12ed9570456a27368996f4a03a3ac.zip
fixed timestamps for 32bit time_t which wraps at 2038
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1956 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/request.t')
-rwxr-xr-xtests/request.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/request.t b/tests/request.t
index f7bc19c8..c153b21d 100755
--- a/tests/request.t
+++ b/tests/request.t
@@ -340,8 +340,8 @@ ok($tf->handle_http($t) == 0, 'HEAD with Content-Length');
$t->{REQUEST} = ( <<EOF
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
+If-Modified-Since: Sun, 01 Jan 2036 00:00:02 GMT
+If-Modified-Since: Sun, 01 Jan 2036 00:00:02 GMT
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 304 } ];
@@ -366,8 +366,8 @@ ok($tf->handle_http($t) == 0, 'broken If-Modified-Since');
$t->{REQUEST} = ( <<EOF
GET /index.html HTTP/1.0
-If-Modified-Since2: Sun, 01 Jan 2100 00:00:03 GMT
-If-Modified-Since: Sun, 01 Jan 2100 00:00:02 GMT
+If-Modified-Since2: Sun, 01 Jan 2036 00:00:03 GMT
+If-Modified-Since: Sun, 01 Jan 2036 00:00:02 GMT
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 304 } ];
@@ -375,7 +375,7 @@ ok($tf->handle_http($t) == 0, 'Similar Headers (bug #1287)');
$t->{REQUEST} = ( <<EOF
GET /index.html HTTP/1.0
-If-Modified-Since: Sun, 01 Jan 2100 00:00:02 GMT
+If-Modified-Since: Sun, 01 Jan 2036 00:00:02 GMT
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 304, 'Content-Type' => 'text/html' } ];
@@ -383,7 +383,7 @@ ok($tf->handle_http($t) == 0, 'If-Modified-Since');
$t->{REQUEST} = ( <<EOF
GET /index.html HTTP/1.0
-If-Modified-Since: Sun, 01 Jan 2100 00:00:02 GMT
+If-Modified-Since: Sun, 01 Jan 2036 00:00:02 GMT
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 304, '-Content-Length' => '' } ];