Tidy test lib
This commit is contained in:
parent
91cfba275a
commit
d4aed0b332
|
@ -487,9 +487,9 @@ sub expectCspChildOK {
|
||||||
my ( $res, $host ) = @_;
|
my ( $res, $host ) = @_;
|
||||||
return 1 unless ($host);
|
return 1 unless ($host);
|
||||||
my $csp = getHeader( $res, 'Content-Security-Policy' );
|
my $csp = getHeader( $res, 'Content-Security-Policy' );
|
||||||
ok($csp, "Content-Security-Policy header found");
|
ok( $csp, "Content-Security-Policy header found" );
|
||||||
count(1);
|
count(1);
|
||||||
like($csp, qr/child-src[^;]*\Q$host\E/, "Found $host in CSP child-src");
|
like( $csp, qr/child-src[^;]*\Q$host\E/, "Found $host in CSP child-src" );
|
||||||
count(1);
|
count(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user