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

add constants for PROXYREQ_* to the apache2 global, allow r.proxyreq and

r.handler to be writable.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1195168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2011-10-30 14:30:04 +00:00
parent 89b65554be
commit 1abbc00118
2 changed files with 24 additions and 0 deletions

View File

@@ -481,6 +481,18 @@ static int req_newindex(lua_State *L)
return 0;
}
if (0 == strcmp("handler", key)) {
const char *value = luaL_checkstring(L, 3);
r->handler = apr_pstrdup(r->pool, value);
return 0;
}
if (0 == strcmp("proxyreq", key)) {
int value = luaL_checkinteger(L, 3);
r->proxyreq = value;
return 0;
}
if (0 == strcmp("status", key)) {
int code = luaL_checkinteger(L, 3);
r->status = code;