Fixed REQUEST_URI
authorSteven Barth <steven@midlink.org>
Wed, 17 Dec 2008 19:52:50 +0000 (19:52 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 17 Dec 2008 19:52:50 +0000 (19:52 +0000)
libs/web/luasrc/dispatcher.lua

index 33b95840a8632f36718c8e49df720475486ebe9f..f69713a911ba0681236ecfa39295f64baf750623 100644 (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