aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-05-03 17:19:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-05-03 17:19:20 +0000
commitadae4ff72c5c855054e67991c3564b6828f4ce1b (patch)
treee0ae1e375441ad6bb5cf23d537bad535e3a58e34 /package/uhttpd/src/uhttpd.c
parent5d7a3d6461fe0f0a39f722aa4bfd92d23713c57b (diff)
downloadupstream-adae4ff72c5c855054e67991c3564b6828f4ce1b.tar.gz
upstream-adae4ff72c5c855054e67991c3564b6828f4ce1b.tar.bz2
upstream-adae4ff72c5c855054e67991c3564b6828f4ce1b.zip
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.c')
-rw-r--r--package/uhttpd/src/uhttpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/uhttpd/src/uhttpd.c b/package/uhttpd/src/uhttpd.c
index 5d66e23a50..78e0b5d952 100644
--- a/package/uhttpd/src/uhttpd.c
+++ b/package/uhttpd/src/uhttpd.c
@@ -1089,7 +1089,7 @@ int main (int argc, char **argv)
if( ! conf.lua_prefix )
conf.lua_prefix = "/lua";
- conf.lua_state = conf.lua_init(conf.lua_handler);
+ conf.lua_state = conf.lua_init(&conf);
}
}
#endif