1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

tolerate LuaMapHandler scripts that don't return anything

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490098 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2013-06-06 01:04:17 +00:00
parent 7ef3b67fb8
commit a43dd91645
2 changed files with 12 additions and 3 deletions

View File

@@ -750,11 +750,17 @@ static int lua_map_handler(request_rec *r)
if (lua_isnumber(L, -1)) {
rc = lua_tointeger(L, -1);
}
if (rc != DECLINED) {
ap_lua_release_state(L, spec, r);
return rc;
else {
ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(02483)
"lua: Lua handler %s in %s did not return a value, assuming apache2.OK",
function_name,
filename);
rc = OK;
}
ap_lua_release_state(L, spec, r);
if (rc != DECLINED) {
return rc;
}
}
}
return DECLINED;