diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-18 20:00:46 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-18 20:00:46 +0000 |
commit | cbb4e61dd5431a48cf161489f02d46b77c997053 (patch) | |
tree | 29213ed6c82f7f01bb307a234b76fafae36cd278 /networking/httpd.c | |
parent | 9f57cf6604638f14390effa01b51c8ad979f14cd (diff) | |
download | busybox-w32-cbb4e61dd5431a48cf161489f02d46b77c997053.tar.gz busybox-w32-cbb4e61dd5431a48cf161489f02d46b77c997053.tar.bz2 busybox-w32-cbb4e61dd5431a48cf161489f02d46b77c997053.zip |
httpd: add comment explaining why SERVER_NAME etc is not set.
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 01b56ebd2..6bf103c56 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1386,6 +1386,8 @@ static void send_cgi_and_exit( | |||
1386 | if (referer) | 1386 | if (referer) |
1387 | setenv1("HTTP_REFERER", referer); | 1387 | setenv1("HTTP_REFERER", referer); |
1388 | setenv1("HTTP_HOST", host); /* set to "" if NULL */ | 1388 | setenv1("HTTP_HOST", host); /* set to "" if NULL */ |
1389 | /* setenv1("SERVER_NAME", safe_gethostname()); - don't do this, | ||
1390 | * just run "env SERVER_NAME=xyz httpd ..." instead */ | ||
1389 | 1391 | ||
1390 | xpiped_pair(fromCgi); | 1392 | xpiped_pair(fromCgi); |
1391 | xpiped_pair(toCgi); | 1393 | xpiped_pair(toCgi); |