Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

we now use lua subrequest in our test case because echo_location is b…

…uggy.
  • Loading branch information...
commit 50fb3df66cfc518782bebcd403bb902207473d3b 1 parent 89e26ea
@agentzh agentzh authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 t/bugs.t
View
12 t/bugs.t
@@ -11,6 +11,7 @@ $ENV{TEST_NGINX_REDIS_PORT} ||= 6379;
#worker_connections 1024;
#no_diff;
+#no_long_string;
#log_level 'warn';
@@ -31,12 +32,21 @@ __DATA__
redis2_pass 127.0.0.1:$TEST_NGINX_REDIS_PORT;
}
+ location /main2 {
+ content_by_lua '
+ local res = ngx.location.capture("/set");
+ ngx.print(res.body)
+ res = ngx.location.capture("/get");
+ ngx.print(res.body)
+ ';
+ }
location /main {
+ # echo_location is buggy...sigh.
echo_location /set;
echo_location /get;
}
--- request
- GET /main
+ GET /main2
--- response_body eval
qq{+OK\r
\$207\r
Please sign in to comment.
Something went wrong with that request. Please try again.