webmcp
changeset 451:32b79658e5ae
Fixed wrong documentation (no leading slash in request.get_path)
author | jbe |
---|---|
date | Thu Jul 21 13:01:34 2016 +0200 (2016-07-21) |
parents | d7814e6d0124 |
children | 122271e0118e |
files | framework/env/request/default_router.lua framework/env/request/get_path.lua |
line diff
1.1 --- a/framework/env/request/default_router.lua Thu Jul 21 12:46:10 2016 +0200 1.2 +++ b/framework/env/request/default_router.lua Thu Jul 21 13:01:34 2016 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 --[[-- 1.5 route = 1.6 request.default_router( 1.7 - path -- URL path, including a leading slash 1.8 + path -- URL path without leading slash 1.9 ) 1.10 1.11 Default conversion from a path to a route. Called by request.router().
2.1 --- a/framework/env/request/get_path.lua Thu Jul 21 12:46:10 2016 +0200 2.2 +++ b/framework/env/request/get_path.lua Thu Jul 21 13:01:34 2016 +0200 2.3 @@ -2,7 +2,8 @@ 2.4 path = 2.5 request.get_path() 2.6 2.7 -Returns the path in the URL of the request. May return nil for a HTTP OPTIONS request with "*" target. 2.8 +Returns the path in the URL of the request without the leading slash and without the query part. 2.9 +May return nil for a HTTP OPTIONS request with "*" target. 2.10 2.11 --]]-- 2.12