uhttpd: added uhttpd.docroot
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 3 May 2012 17:19:20 +0000 (17:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 3 May 2012 17:19:20 +0000 (17:19 +0000)
commit91562e0921fda533150cece427714d2f67195d3b
treee0ae1e375441ad6bb5cf23d537bad535e3a58e34
parent1ab514ca61ebb62aa7cc3b4bed02dfee4c506589
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>
SVN-Revision: 31571
package/uhttpd/src/uhttpd-lua.c
package/uhttpd/src/uhttpd-lua.h
package/uhttpd/src/uhttpd.c
package/uhttpd/src/uhttpd.h