webmcp
diff framework/env/request/is_404.lua @ 97:52305ec73d47
Fixed 404 treatment regarding _webmcp_path interface
author | jbe |
---|---|
date | Sun Oct 14 17:11:13 2012 +0200 (2012-10-14) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/framework/env/request/is_404.lua Sun Oct 14 17:11:13 2012 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +--[[-- 1.5 +is_404 = -- boolean 1.6 +request.is_404() 1.7 + 1.8 +Returns true, if this request results in a 404, else false. 1.9 + 1.10 +--]]-- 1.11 + 1.12 +function request.is_404() 1.13 + return request._is_404 1.14 +end