This commit is contained in:
Steven Barth 2008-05-06 22:44:14 +00:00
parent 89d84aeced
commit fc6f624c88

View file

@ -14,7 +14,7 @@ function init_req(context)
PATH_INFO = "/" .. context.uri PATH_INFO = "/" .. context.uri
REMOTE_PORT = context.remote_port REMOTE_PORT = context.remote_port
SERVER_ADDR = context.server_addr SERVER_ADDR = context.server_addr
SCRIPT_NAME = REQUEST_URI:sub(1, #REQUEST_URI - #context.uri) SCRIPT_NAME = REQUEST_URI:sub(1, #REQUEST_URI - #PATH_INFO)
end end
function handle_req(context) function handle_req(context)