fix syslog-ng, remove libol dependency in ipkg/control since statically
[openwrt.git] / openwrt / package / busybox / patches / 330-httpd_user_agent.patch
1 --- busybox-1.1.0.orig/networking/httpd.c 2006-02-06 16:41:57.000000000 +0100
2 +++ busybox-1.1.0/networking/httpd.c 2006-02-06 16:41:26.000000000 +0100
3 @@ -247,6 +247,7 @@
4
5 #ifdef CONFIG_FEATURE_HTTPD_CGI
6 char *referer;
7 + char *user_agent;
8 #endif
9
10 const char *configFile;
11 @@ -1192,6 +1193,7 @@
12 addEnv("SERVER", "PROTOCOL", "HTTP/1.0");
13 addEnv("GATEWAY_INTERFACE", "", "CGI/1.1");
14 addEnv("REMOTE", "ADDR", config->rmt_ip_str);
15 + addEnv("HTTP","USER_AGENT", config->user_agent);
16 #ifdef CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV
17 addEnvPort("REMOTE");
18 #endif
19 @@ -1737,6 +1739,10 @@
20 for(test = buf + 8; isspace(*test); test++)
21 ;
22 config->referer = strdup(test);
23 + } else if ((strncasecmp(buf, "User-Agent:",11) ==0)) {
24 + for(test = buf + 11; isspace(*test); test++)
25 + ;
26 + config->user_agent = strdup(test);
27 }
28 #endif
29
This page took 0.055816 seconds and 5 git commands to generate.