1
1
mirror of https://github.com/openresty/headers-more-nginx-module synced 2024-11-11 20:35:56 +01:00
headers-more-nginx-module/t/phase.t
2017-09-19 15:52:38 -07:00

26 lines
355 B
Perl

# vi:filetype=perl
use lib 'lib';
use Test::Nginx::Socket;
plan tests => 3;
no_diff;
run_tests();
__DATA__
=== TEST 1: simple set (1 arg)
--- config
location /foo {
deny all;
more_set_headers 'X-Foo: Blah';
}
--- request
GET /foo
--- response_headers
X-Foo: Blah
--- response_body_like: 403 Forbidden
--- error_code: 403