summaryrefslogtreecommitdiff
path: root/form-input-nginx-module-0.12/t/eval.t
blob: 52d68b99d7526c2209d247c0606fe85897d39ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# vi:set ft= ts=4 sw=4 et fdm=marker:

use lib 'lib';
use Test::Nginx::Socket skip_all => 'not working at all';

#repeat_each(3);

plan tests => repeat_each() * 2 * blocks();

no_long_string();

run_tests();

#no_diff();

__DATA__

=== TEST 1: blank body
--- config
    location /bar1 {
        eval_subrequest_in_memory off;
        eval_override_content_type text/plain;
        eval $res {
            default_type text/plain;
            set_form_input $foo bar;
            echo $foo;
        }
        echo [$res];
    }
--- more_headers
Content-Type: application/x-www-form-urlencoded
--- request
POST /bar1
bar=3
--- response_body
[3]