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
5 #ifdef CONFIG_FEATURE_HTTPD_CGI
10 const char *configFile;
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
19 @@ -1737,6 +1739,10 @@
20 for(test = buf + 8; isspace(*test); test++)
22 config->referer = strdup(test);
23 + } else if ((strncasecmp(buf, "User-Agent:",11) ==0)) {
24 + for(test = buf + 11; isspace(*test); test++)
26 + config->user_agent = strdup(test);