Diff for /embedaddon/lighttpd/tests/mod-access.t between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2013/10/14 10:32:47 version 1.1.1.2, 2016/11/02 10:35:00
Line 8  BEGIN { Line 8  BEGIN {
   
 use strict;  use strict;
 use IO::Socket;  use IO::Socket;
use Test::More tests => 4;use Test::More tests => 6;
 use LightyTest;  use LightyTest;
   
 my $tf = LightyTest->new();  my $tf = LightyTest->new();
Line 29  EOF Line 29  EOF
  );   );
 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];  $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
 ok($tf->handle_http($t) == 0, '#1230 - forbid access to ...~ - trailing slash');  ok($tf->handle_http($t) == 0, '#1230 - forbid access to ...~ - trailing slash');
   
   $t->{REQUEST}  = ( <<EOF
   GET /ssi-include.txt HTTP/1.0
   Host: allow.example.org
   EOF
    );
   $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
   ok($tf->handle_http($t) == 0, 'explicitly allowed');
   
   $t->{REQUEST}  = ( <<EOF
   GET /cgi.pl HTTP/1.0
   Host: allow.example.org
   EOF
    );
   $t->{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");  ok($tf->stop_proc == 0, "Stopping lighttpd");
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>