I've tested with nginx-1.2.0 there still be such a bug in it.
I just made a fix to make it work but I am not sure if it is a best way to do this.
fix bug that "eval" hangs in named location
I believe this is a bug in the nginx core. And ngx_eval is not the only one that is affected. The following patch for the nginx core should fix this:
I'm reluctant to work-around this issue in ngx_eval because it just "hides" the real issue rather than healthily expose it :)
added a test for using ngx_eval in named locations. this exposes an i…
…ssue in the nginx core, reported by drdrxp in github issue #1.
hmm.. seem like this is the right way.
added tests to expose the bug in the nginx core reported by drdrxp in o…