# HG changeset patch # User jbe # Date 1469098894 -7200 # Node ID 32b79658e5ae76768cfb4763e1f560fde39c07d8 # Parent d7814e6d0124182d97c83f1be17e4b821cdbbd14 Fixed wrong documentation (no leading slash in request.get_path) diff -r d7814e6d0124 -r 32b79658e5ae framework/env/request/default_router.lua --- a/framework/env/request/default_router.lua Thu Jul 21 12:46:10 2016 +0200 +++ b/framework/env/request/default_router.lua Thu Jul 21 13:01:34 2016 +0200 @@ -1,7 +1,7 @@ --[[-- route = request.default_router( - path -- URL path, including a leading slash + path -- URL path without leading slash ) Default conversion from a path to a route. Called by request.router(). diff -r d7814e6d0124 -r 32b79658e5ae framework/env/request/get_path.lua --- a/framework/env/request/get_path.lua Thu Jul 21 12:46:10 2016 +0200 +++ b/framework/env/request/get_path.lua Thu Jul 21 13:01:34 2016 +0200 @@ -2,7 +2,8 @@ path = request.get_path() -Returns the path in the URL of the request. May return nil for a HTTP OPTIONS request with "*" target. +Returns the path in the URL of the request without the leading slash and without the query part. +May return nil for a HTTP OPTIONS request with "*" target. --]]--