summaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-15 19:46:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-15 19:46:35 +0000
commit20ef055c2f698618142a280d5cbc010acacfd651 (patch)
tree3df03f974bf03b35e3f32dbbfed7385272c2d975 /package/uhttpd/src/uhttpd.h
parenta8e20318c5fdb6809892e31cd658d2eda4a9ee2d (diff)
downloadmaster-31e0f0ae-20ef055c2f698618142a280d5cbc010acacfd651.tar.gz
master-31e0f0ae-20ef055c2f698618142a280d5cbc010acacfd651.tar.bz2
master-31e0f0ae-20ef055c2f698618142a280d5cbc010acacfd651.zip
uhttpd: - make network timeout configurable, increase default to 30 seconds (#7067) - follow symlinks in docroot and add option to disable that - fix mimetype detection for files with combined extensions (.tar.gz, ...)
SVN-Revision: 20883
Diffstat (limited to 'package/uhttpd/src/uhttpd.h')
-rw-r--r--package/uhttpd/src/uhttpd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/uhttpd/src/uhttpd.h b/package/uhttpd/src/uhttpd.h
index 0e9f1ee886..32e3970072 100644
--- a/package/uhttpd/src/uhttpd.h
+++ b/package/uhttpd/src/uhttpd.h
@@ -32,7 +32,7 @@
#include <linux/limits.h>
#include <netdb.h>
#include <ctype.h>
-
+#include <errno.h>
#include <dlfcn.h>
@@ -64,6 +64,8 @@ struct config {
char docroot[PATH_MAX];
char *realm;
char *file;
+ int no_symlinks;
+ int network_timeout;
#ifdef HAVE_CGI
char *cgi_prefix;
#endif