summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-23 13:15:22 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-23 13:15:22 +0000
commiteca18b19053fcd4350039ffa46c24c335f4142c4 (patch)
tree589d72aa19a47e95ae624ee66b73dc6d5f57c79c /uhttpd.h
parent6577672859580b0ffbe62de5d328ac046d9137e6 (diff)
downloaduhttpd-eca18b19053fcd4350039ffa46c24c335f4142c4.tar.gz
[package] uhttpd:
- fix a compile warning - support custom index file names - support custom error pages (or cgi handler) - add option to disable directory listings - add REDIRECT_STATUS for CGI requests, fixes php-cgi git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@22366 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index 32e3970..c8fdaf4 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -64,7 +64,10 @@ struct config {
char docroot[PATH_MAX];
char *realm;
char *file;
+ char *index_file;
+ char *error_handler;
int no_symlinks;
+ int no_dirlists;
int network_timeout;
#ifdef HAVE_CGI
char *cgi_prefix;
@@ -124,6 +127,7 @@ struct auth_realm {
struct http_request {
int method;
float version;
+ int redirect_status;
char *url;
char *headers[UH_LIMIT_HEADERS];
struct auth_realm *realm;