webmcp

view framework/env/request/get_path.lua @ 463:43a4b74b5b18

Bugfix in JSON library: length of array is an integer, not a float (Lua 5.3 distinguishes them)
author jbe
date Sat Sep 10 21:34:59 2016 +0200 (2016-09-10)
parents 32b79658e5ae
children
line source
1 --[[--
2 path =
3 request.get_path()
5 Returns the path in the URL of the request without the leading slash and without the query part.
6 May return nil for a HTTP OPTIONS request with "*" target.
8 --]]--
10 function request.get_path()
11 return request._http_request.path
12 end

Impressum / About Us