Publish request args
authorSteven Barth <steven@midlink.org>
Sat, 1 Nov 2008 18:49:54 +0000 (18:49 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 1 Nov 2008 18:49:54 +0000 (18:49 +0000)
libs/web/luasrc/dispatcher.lua

index 645ea972e622faefd09e478ceaff6dc4e3ab4392..5afb079785228084bc40fc3a1ddd86a9647b9e03 100644 (file)
@@ -133,7 +133,8 @@ function dispatch(request)
 
        local track = {}
        local args = {}
-       context.args = args
+       ctx.args = args
+       ctx.requestargs = ctx.requestargs or args
        local n
 
        for i, s in ipairs(request) do