Skip to content

Commit

Permalink
added a test for internal redirects.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Nov 23, 2011
1 parent e6c1d8f commit 7bf9251
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ Copyright & License

This module is licenced under the BSD license.

Copyright (c) 2009, Taobao Inc., Alibaba Group ( http://www.taobao.com ).

Copyright (C) 2009 by agentzh <[email protected]>.
Copyright (C) 2009-2011 by Zhang "agentzh" Yichun (章亦春) <[email protected]>.

All rights reserved.

Expand Down
25 changes: 24 additions & 1 deletion t/sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ blah(hello);
Content-Type: application/x-javascript


=== TEST 4: bug: keys started by underscore

=== TEST 14: bug: keys started by underscore
--- config
location /foo {
default_type 'application/json';
Expand All @@ -279,3 +280,25 @@ foo._bar([]
);



=== TEST 15: exec
--- config
location /foo {
default_type "application/json";
echo -n hello world;
xss_get on;
xss_callback_arg _c;
}
location /lua {
xss_get on;
xss_callback_arg _c;

echo_exec /foo $args;
}
--- request
GET /lua?_c=bah
--- response_headers
Content-Type: application/x-javascript
--- response_body chop
bah(hello world);

0 comments on commit 7bf9251

Please sign in to comment.