From 36a9ce4831d06b29f6531ad96be7f93b87dece3e Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Fri, 19 Aug 2005 11:13:43 +0000 Subject: [PATCH] added another test for OPTIONS git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@580 152afb58-edef-0310-8abb-c4023f1b3aa9 --- tests/core.t | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/core.t b/tests/core.t index 9cb64aa5..89e12c0a 100755 --- a/tests/core.t +++ b/tests/core.t @@ -9,7 +9,7 @@ BEGIN { use strict; use IO::Socket; -use Test::More tests => 16; +use Test::More tests => 17; use LightyTest; my $tf = LightyTest->new(); @@ -122,6 +122,16 @@ EOF $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ); ok($tf->handle_http($t) == 0, 'OPTIONS'); +$t->{REQUEST} = ( <{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.1', 'HTTP-Status' => 200 } ); +ok($tf->handle_http($t) == 0, 'OPTIONS'); + + ok($tf->stop_proc == 0, "Stopping lighttpd");