webmcp
diff framework/env/request/__init.lua @ 101:dd21d2e06a95
In case of WebMCP based URL path parsing: Allow id to also be set by "_webmcp_id" parameter
author | jbe |
---|---|
date | Mon Oct 15 17:44:30 2012 +0200 (2012-10-15) |
parents | 52305ec73d47 |
children | 47ebf4213716 |
line diff
1.1 --- a/framework/env/request/__init.lua Mon Oct 15 17:07:20 2012 +0200 1.2 +++ b/framework/env/request/__init.lua Mon Oct 15 17:44:30 2012 +0200 1.3 @@ -61,6 +61,10 @@ 1.4 request._is_404 = true 1.5 end 1.6 parse() 1.7 + -- allow id to also be set by "_webmcp_id" parameter 1.8 + if cgi.params._webmcp_id ~= nil then 1.9 + request._id = cgi.params._webmcp_id 1.10 + end 1.11 depth = 0 1.12 for match in string.gmatch(path, "/") do 1.13 depth = depth + 1