summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/filter/input_body.t
blob: a26ee06d002c9b4a3ee5fca05e17b9c75be1112a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings FATAL => 'all';

use Apache::Test;
use Apache::TestRequest;
use Apache::TestUtil;

plan tests => 2, [qw(input_body_filter)];

my $location = '/input_body_filter';

for my $x (1,2) {
    my $expected = "ok $x";
    my $data = scalar reverse $expected;
    my $response = POST_BODY $location, content => $data;
    ok t_cmp($response,
             $expected,
             "Posted \"$data\"");
}