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

make r.args read/write for rewrite refugees.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1194997 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2011-10-29 19:42:32 +00:00
parent 7163bcd22c
commit 70ebce981b
2 changed files with 9 additions and 0 deletions

View File

@@ -486,6 +486,12 @@ static int req_newindex(lua_State *L)
return 0;
}
if (0 == strcmp("args", key)) {
const char *value = luaL_checkstring(L, 3);
r->args = apr_pstrdup(r->pool, value);
return 0;
}
if (0 == apr_strnatcmp("user", key)) {
const char *value = luaL_checkstring(L, 3);
r->user = apr_pstrdup(r->pool, value);