summaryrefslogtreecommitdiff
path: root/tests/request.t
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2006-02-01 11:35:08 +0000
committerJan Kneschke <jan@kneschke.de>2006-02-01 11:35:08 +0000
commitbd8e6919d29ea6186bcc3c169079d2af44746821 (patch)
tree19cc3df7f91afcfb029bdf6bdc2a5c6c06756ce3 /tests/request.t
parent433f1883ac8af9f4b077eae9565e285d8f200a5b (diff)
downloadlighttpd1.4-bd8e6919d29ea6186bcc3c169079d2af44746821.tar.gz
lighttpd1.4-bd8e6919d29ea6186bcc3c169079d2af44746821.zip
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-xtests/request.t10
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