webmcp

view framework/env/request/get_path.lua @ 230:d3273921ce75

Bugfix in local function pack_return_values in framework/env/execute/chunk.lua
author jbe
date Fri Feb 27 22:56:58 2015 +0100 (2015-02-27)
parents 703808418543
children 3db6f3ad0703
line source
1 --[[--
2 path =
3 request.get_path()
5 Returns the path in the URL of the request.
7 --]]--
9 function request.get_path()
10 local path = request._http_request.path
11 if not path then
12 error("No valid path for HTTP request")
13 end
14 return path
15 end

Impressum / About Us