1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

allow setting of r->user from lua

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brian McCallister
2009-11-04 23:28:22 +00:00
parent 813ff64ace
commit 4ae86f20e4

View File

@@ -478,6 +478,12 @@ static int req_newindex(lua_State *L)
return 0;
}
if (0 == apr_strnatcmp("user", key)) {
const char *value = luaL_checkstring(L, 3);
r->user = apr_pstrdup(r->pool, value);
return 0;
}
lua_pushstring(L,
apr_psprintf(r->pool,
"Property [%s] may not be set on a request_rec",