diff options
author | Jan Kneschke <jan@kneschke.de> | 2006-02-01 11:35:08 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2006-02-01 11:35:08 +0000 |
commit | bd8e6919d29ea6186bcc3c169079d2af44746821 (patch) | |
tree | 19cc3df7f91afcfb029bdf6bdc2a5c6c06756ce3 /tests/request.t | |
parent | 433f1883ac8af9f4b077eae9565e285d8f200a5b (diff) | |
download | lighttpd-git-bd8e6919d29ea6186bcc3c169079d2af44746821.tar.gz |
added tests for possible crashes
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@974 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/request.t')
-rwxr-xr-x | tests/request.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/request.t b/tests/request.t index be1f5d8f..e581879e 100755 --- a/tests/request.t +++ b/tests/request.t @@ -8,7 +8,7 @@ BEGIN { use strict; use IO::Socket; -use Test::More tests => 33; +use Test::More tests => 34; use LightyTest; my $tf = LightyTest->new(); @@ -321,6 +321,14 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ]; ok($tf->handle_http($t) == 0, 'OPTIONS with Content-Length'); $t->{REQUEST} = ( <<EOF +OPTIONS rtsp://221.192.134.146:80 RTSP/1.1 +Host: 221.192.134.146:80 +EOF + ); +$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ]; +ok($tf->handle_http($t) == 0, 'OPTIONS for RTSP'); + +$t->{REQUEST} = ( <<EOF HEAD / HTTP/1.0 Content-Length: 4 |