You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2009/09/10 13:39:03 UTC

svn commit: r813376 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/core.xml server/core.c

Author: jim
Date: Thu Sep 10 11:39:03 2009
New Revision: 813376

URL: http://svn.apache.org/viewvc?rev=813376&view=rev
Log:
veto-ed

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/docs/manual/mod/core.xml
    httpd/httpd/trunk/server/core.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=813376&r1=813375&r2=813376&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Thu Sep 10 11:39:03 2009
@@ -16,11 +16,6 @@
 
   *) Add support for HTTP PUT to ab. [Jeff Barnes <jbarnesweb yahoo.com>]
 
-  *) ServerTokens now accepts 'Off' which disables sending of
-     Server: header and sets SERVER_SOFTWARE to empty. It also accepts
-     'Set' which allows the user to specify any string as the Server:
-     name.  [Jim Jagielski]
-
   *) mod_headers: generalise the envclause to support expression
      evaluation with ap_expr parser [Nick Kew]
 

Modified: httpd/httpd/trunk/docs/manual/mod/core.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/core.xml?rev=813376&r1=813375&r2=813376&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/core.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/core.xml Thu Sep 10 11:39:03 2009
@@ -2862,7 +2862,7 @@
 <name>ServerTokens</name>
 <description>Configures the <code>Server</code> HTTP response
 header</description>
-<syntax>ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full|Off|Set</syntax>
+<syntax>ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full</syntax>
 <default>ServerTokens Full</default>
 <contextlist><context>server config</context></contextlist>
 
@@ -2903,19 +2903,6 @@
       <dd>Server sends (<em>e.g.</em>): <code>Server: Apache/2.0.41
       (Unix)</code></dd>
 
-      <dt><code>ServerTokens Set <em>"String"</em></code></dt>
-
-      <dd>Server sends user specified string
-      (<em>e.g.</em>): <code>Server: MyWebServer/8.6</code><br/>
-      <strong>Note:</strong> The string must be in quotes if
-      there are any embedded spaces.
-      </dd>
-
-      <dt><code>ServerTokens Off</code></dt>
-
-      <dd>Server sends no <code>Server:</code> header
-      (and <code>SERVER_SOFTWARE</code> is blank)</dd>
-
     </dl>
 
     <p>This setting applies to the entire server, and cannot be

Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=813376&r1=813375&r2=813376&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Thu Sep 10 11:39:03 2009
@@ -2677,7 +2677,6 @@
 static char *server_banner = NULL;
 static int banner_locked = 0;
 static char *server_description = NULL;
-static char *user_server_banner = NULL;
 
 enum server_token_type {
     SrvTk_MAJOR,         /* eg: Apache/2 */
@@ -2685,9 +2684,7 @@
     SrvTk_MINIMAL,       /* eg: Apache/2.0.41 */
     SrvTk_OS,            /* eg: Apache/2.0.41 (UNIX) */
     SrvTk_FULL,          /* eg: Apache/2.0.41 (UNIX) PHP/4.2.2 FooBar/1.2b */
-    SrvTk_PRODUCT_ONLY,  /* eg: Apache */
-    SrvTk_OFF,           /* eg: <blank> */
-    SrvTk_SET
+    SrvTk_PRODUCT_ONLY  /* eg: Apache */
 };
 static enum server_token_type ap_server_tokens = SrvTk_FULL;
 
@@ -2751,13 +2748,7 @@
  */
 static void set_banner(apr_pool_t *pconf)
 {
-    if (ap_server_tokens == SrvTk_SET) {
-        ap_add_version_component(pconf, user_server_banner);
-    }
-    else if (ap_server_tokens == SrvTk_OFF) {
-        ap_add_version_component(pconf, "");
-    }
-    else if (ap_server_tokens == SrvTk_PRODUCT_ONLY) {
+    if (ap_server_tokens == SrvTk_PRODUCT_ONLY) {
         ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT);
     }
     else if (ap_server_tokens == SrvTk_MINIMAL) {
@@ -2792,14 +2783,7 @@
         return err;
     }
 
-    if (!strcasecmp(arg1, "Set")) {
-        ap_server_tokens = SrvTk_SET;
-        user_server_banner = (arg2 ? apr_pstrdup(cmd->pool, arg2) : "");
-    }
-    else if (!strcasecmp(arg1, "Off")) {
-        ap_server_tokens = SrvTk_OFF;
-    }
-    else if (!strcasecmp(arg1, "OS")) {
+    if (!strcasecmp(arg1, "OS")) {
         ap_server_tokens = SrvTk_OS;
     }
     else if (!strcasecmp(arg1, "Min") || !strcasecmp(arg1, "Minimal")) {
@@ -3321,7 +3305,7 @@
   "A numeric IP address:port, or the name of a host"),
 AP_INIT_TAKE12("ServerTokens", set_serv_tokens, NULL, RSRC_CONF,
   "Determine tokens displayed in the Server: header - Min(imal), "
-  "Major, Minor, Prod, OS, Off, Set or Full"),
+  "Major, Minor, Prod, OS or Full"),
 AP_INIT_TAKE1("LimitRequestLine", set_limit_req_line, NULL, RSRC_CONF,
   "Limit on maximum size of an HTTP request line"),
 AP_INIT_TAKE1("LimitRequestFieldsize", set_limit_req_fieldsize, NULL,



Re: svn commit: r813376 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/core.xml server/core.c

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
jim@apache.org wrote:
> URL: http://svn.apache.org/viewvc?rev=813376&view=rev
> Log:
> veto-ed

A belated thanks, and sorry I didn't note this earlier.

Is there anything on trunk that precludes cutting an alpha before Jim,
Paul or myself snag a tarball for review?