aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/450-httpd_accept_header.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-05-25 13:52:31 +0000
committerNicolas Thill <nico@openwrt.org>2009-05-25 13:52:31 +0000
commitd7ec9765286b1cd8edf289a60196390b8712385e (patch)
tree961a48c9e27d27fd96ca6b76e567c7c5c7d5b4ea /package/busybox/patches/450-httpd_accept_header.patch
parent24c503eef18eb9056529fd774dc65c314191de68 (diff)
downloadmaster-187ad058-d7ec9765286b1cd8edf289a60196390b8712385e.tar.gz
master-187ad058-d7ec9765286b1cd8edf289a60196390b8712385e.tar.bz2
master-187ad058-d7ec9765286b1cd8edf289a60196390b8712385e.zip
[package] busybox: update to v1.12.4 (partially closes: #4279)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16053 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/450-httpd_accept_header.patch')
-rw-r--r--package/busybox/patches/450-httpd_accept_header.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/busybox/patches/450-httpd_accept_header.patch b/package/busybox/patches/450-httpd_accept_header.patch
index e3948cf942..88dfcfbb06 100644
--- a/package/busybox/patches/450-httpd_accept_header.patch
+++ b/package/busybox/patches/450-httpd_accept_header.patch
@@ -1,6 +1,6 @@
--- a/networking/httpd.c
+++ b/networking/httpd.c
-@@ -255,6 +255,8 @@ struct globals {
+@@ -256,6 +256,8 @@ struct globals {
USE_FEATURE_HTTPD_BASIC_AUTH(char *remoteuser;)
USE_FEATURE_HTTPD_CGI(char *referer;)
USE_FEATURE_HTTPD_CGI(char *user_agent;)
@@ -9,7 +9,7 @@
off_t file_size; /* -1 - unknown */
#if ENABLE_FEATURE_HTTPD_RANGES
-@@ -302,6 +304,8 @@ struct globals {
+@@ -303,6 +305,8 @@ struct globals {
#define remoteuser (G.remoteuser )
#define referer (G.referer )
#define user_agent (G.user_agent )
@@ -18,7 +18,7 @@
#define file_size (G.file_size )
#if ENABLE_FEATURE_HTTPD_RANGES
#define range_start (G.range_start )
-@@ -1383,6 +1387,10 @@ static void send_cgi_and_exit(
+@@ -1391,6 +1395,10 @@ static void send_cgi_and_exit(
}
}
setenv1("HTTP_USER_AGENT", user_agent);
@@ -29,7 +29,7 @@
if (post_len)
putenv(xasprintf("CONTENT_LENGTH=%d", post_len));
if (cookie)
-@@ -2020,6 +2028,10 @@ static void handle_incoming_and_exit(con
+@@ -2028,6 +2036,10 @@ static void handle_incoming_and_exit(con
referer = xstrdup(skip_whitespace(iobuf + sizeof("Referer:")-1));
} else if (STRNCASECMP(iobuf, "User-Agent:") == 0) {
user_agent = xstrdup(skip_whitespace(iobuf + sizeof("User-Agent:")-1));