1
0
Fork 0
apache2/debian/perl-framework/t/apache/options.t
Daniel Baumann f56986e2d9
Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:27 +02:00

17 lines
345 B
Perl

use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest;
my @urls = qw(/);
plan tests => @urls * 2, \&need_lwp;
for my $url (@urls) {
my $res = OPTIONS $url;
ok t_cmp $res->code, 200, "code";
my $allow = $res->header('Allow') || '';
ok t_cmp $allow, qr/OPTIONS/, "OPTIONS";
}