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");