agentzh/redis2-nginx-module — pull request #14 by tomplus (2012-08-29 22:23:31+00:00)
Title: bugfix: merge location configration

Function merge_loc_conf doesn't merge parameters 'queries' and 'literal_query', so I sometimes get error 'no redis2 query specified or the query is empty'.

For example:

location /redis {
set $key 'default';
if ($uri ~ "(special.*)") {
set $key $1;
}
redis2_query lrange $key 0 -1;
redis2_pass 127.0.0.1:6379;
}

You will get HTTP/500 if you send query /redis/special_001. For query '/redis/test' everything work fine.