diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-03 17:19:20 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-03 17:19:20 +0000 |
commit | 37f687e09940b8aea678b166750b54cd90d34e55 (patch) | |
tree | e0ae1e375441ad6bb5cf23d537bad535e3a58e34 /package/uhttpd/src/uhttpd-lua.h | |
parent | 8329c6da4fac952135d7f10d8ee008b5342ad87b (diff) |
uhttpd: added uhttpd.docroot
Passes the document-root to the Lua handler by placing it in uhttpd.docroot.
It could alternatively be placed in env.DOCUMENT_ROOT which would more closely
resemble the CGI protocol; but would mean that it is not available at the time
when the handler-chunk is loaded but rather not until the handler is called,
without any code savings.
Signed-off-by: David Favro <openwrt@meta-dynamic.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31571 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uhttpd/src/uhttpd-lua.h')
-rw-r--r-- | package/uhttpd/src/uhttpd-lua.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/uhttpd/src/uhttpd-lua.h b/package/uhttpd/src/uhttpd-lua.h index 7304665000..2d2f73c1c2 100644 --- a/package/uhttpd/src/uhttpd-lua.h +++ b/package/uhttpd/src/uhttpd-lua.h @@ -32,7 +32,7 @@ #define UH_LUA_ERR_PARAM -3 -lua_State * uh_lua_init(); +lua_State * uh_lua_init(const struct config *conf); void uh_lua_request( struct client *cl, struct http_request *req, lua_State *L |