From: Denis Vlasenko Date: Wed, 18 Mar 2009 20:00:46 +0000 (-0000) Subject: httpd: add comment explaining why SERVER_NAME etc is not set. X-Git-Tag: 1_14_0~222 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cbb4e61dd5431a48cf161489f02d46b77c997053;p=oweals%2Fbusybox.git httpd: add comment explaining why SERVER_NAME etc is not set. --- 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( if (referer) setenv1("HTTP_REFERER", referer); setenv1("HTTP_HOST", host); /* set to "" if NULL */ + /* setenv1("SERVER_NAME", safe_gethostname()); - don't do this, + * just run "env SERVER_NAME=xyz httpd ..." instead */ xpiped_pair(fromCgi); xpiped_pair(toCgi);