typos
[openwrt.git] / package / busybox / patches / 330-httpd_user_agent.patch
1 diff -Nur busybox-1.1.1/networking/httpd.c busybox-1.1.1-owrt/networking/httpd.c
2 --- busybox-1.1.1/networking/httpd.c 2006-04-01 19:42:36.000000000 +0200
3 +++ busybox-1.1.1-owrt/networking/httpd.c 2006-04-01 19:43:59.000000000 +0200
4 @@ -247,6 +247,7 @@
5 const char *query;
6
7 USE_FEATURE_HTTPD_CGI(char *referer;)
8 + USE_FEATURE_HTTPD_CGI(char *user_agent;)
9
10 const char *configFile;
11
12 @@ -1208,6 +1209,7 @@
13 addEnv("SERVER", "PROTOCOL", "HTTP/1.0");
14 addEnv("GATEWAY_INTERFACE", "", "CGI/1.1");
15 addEnv("REMOTE", "ADDR", config->rmt_ip_str);
16 + addEnv("HTTP","USER_AGENT", config->user_agent);
17 #ifdef CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV
18 addEnvPort("REMOTE");
19 #endif
20 @@ -1771,6 +1773,10 @@
21 for(test = buf + 8; isspace(*test); test++)
22 ;
23 config->referer = strdup(test);
24 + } else if ((strncasecmp(buf, "User-Agent:",11) ==0)) {
25 + for(test = buf + 11; isspace(*test); test++)
26 + ;
27 + config->user_agent = strdup(test);
28 }
29 #endif
30
This page took 0.042314 seconds and 5 git commands to generate.