Skip to content

Commit

Permalink
well...added echo-client-request-headers.t for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Oct 10, 2009
1 parent e918f56 commit fd02dd9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions test/t/echo-client-request-headers.t
@@ -0,0 +1,44 @@
# vi:filetype=perl

use lib 'lib';
use Test::Nginx::Echo;

plan tests => 1 * blocks();

run_tests();

__DATA__
=== TEST 1: standalone directive
--- config
location /echo {
echo_client_request_headers;
}
--- request
GET /echo
--- response_body eval
"GET /echo HTTP/1.1\r
Host: localhost:\$ServerPort\r
User-Agent: Test::Nginx::Echo\r
\r
"
=== TEST 2: multiple instances
--- config
location /echo {
echo_client_request_headers;
echo_client_request_headers;
}
--- request
GET /echo
--- response_body eval
"GET /echo HTTP/1.1\r
Host: localhost:\$ServerPort\r
User-Agent: Test::Nginx::Echo\r
\r
GET /echo HTTP/1.1\r
Host: localhost:\$ServerPort\r
User-Agent: Test::Nginx::Echo\r
\r
"

0 comments on commit fd02dd9

Please sign in to comment.