Skip to content

Commit

Permalink
fixed the tests to reflect recent changes in $echo_client_request_hea…
Browse files Browse the repository at this point in the history
…ders.
  • Loading branch information
agentzh committed Mar 15, 2013
1 parent da95f64 commit f5eb135
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions t/sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ POST
chunkin on;
location /main {
echo 'headers:';
echo $echo_client_request_headers;
echo -n $echo_client_request_headers;
}
--- request
POST /main
Expand All @@ -103,7 +103,7 @@ Host: localhost:\$ServerPortForClient\r
User-Agent: Test::Nginx::LWP\r
Content-Type: text/plain\r
Transfer-Encoding: chunked\r
\r
"


Expand All @@ -120,7 +120,7 @@ This test passes only for nginx versions
}

location /proxy {
echo $echo_client_request_headers;
echo -n $echo_client_request_headers;
}
--- request
POST /main
Expand All @@ -134,7 +134,7 @@ Connection: close\r
User-Agent: Test::Nginx::LWP\r
Content-Type: text/plain\r
Content-Length: 10\r
\r
"


Expand Down Expand Up @@ -165,7 +165,7 @@ POST /main
proxy_pass $scheme://127.0.0.1:$server_port/proxy;
}
location /proxy {
echo $echo_client_request_headers;
echo -n $echo_client_request_headers;
}
--- request
POST /main
Expand All @@ -179,7 +179,7 @@ Connection: close\r
User-Agent: Test::Nginx::LWP\r
Content-Type: text/plain\r
Content-Length: 0\r
\r
"


Expand All @@ -191,7 +191,7 @@ Content-Length: 0\r
proxy_pass $scheme://127.0.0.1:$server_port/proxy;
}
location /proxy {
echo $echo_client_request_headers;
echo -n $echo_client_request_headers;
}
--- request
POST /main
Expand All @@ -205,7 +205,7 @@ Connection: close\r
User-Agent: Test::Nginx::LWP\r
Content-Type: text/plain\r
Content-Length: 1\r
\r
"


Expand Down Expand Up @@ -303,7 +303,7 @@ This test passes only for nginx versions
}

location /proxy {
echo $echo_client_request_headers;
echo -n $echo_client_request_headers;
}
--- request
POST /main
Expand All @@ -317,7 +317,7 @@ Connection: close\r
User-Agent: Test::Nginx::LWP\r
Content-Type: text/plain\r
Content-Length: 10\r
\r
"


Expand Down

0 comments on commit f5eb135

Please sign in to comment.