--- embedaddon/lighttpd/tests/mod-access.t 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/tests/mod-access.t 2016/11/02 10:35:00 1.1.1.2 @@ -8,7 +8,7 @@ BEGIN { use strict; use IO::Socket; -use Test::More tests => 4; +use Test::More tests => 6; use LightyTest; my $tf = LightyTest->new(); @@ -29,6 +29,22 @@ EOF ); $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ]; ok($tf->handle_http($t) == 0, '#1230 - forbid access to ...~ - trailing slash'); + +$t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ]; +ok($tf->handle_http($t) == 0, 'explicitly allowed'); + +$t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ]; +ok($tf->handle_http($t) == 0, 'not explicitly allowed'); ok($tf->stop_proc == 0, "Stopping lighttpd");