Fixed REQUEST_URI

This commit is contained in:
Steven Barth 2008-12-17 19:52:50 +00:00
parent 11052b9f75
commit 57cfc2ee26

View file

@ -203,7 +203,7 @@ function dispatch(request)
if key == "controller" then
return build_url()
elseif key == "REQUEST_URI" then
return build_url(ctx.requested)
return build_url(unpack(ctx.requested.path))
else
return rawget(table, key) or _G[key]
end