Blame SOURCES/httpd-2.4.6-full-release.patch

af9b8b
diff --git a/server/core.c b/server/core.c
af9b8b
index fb5e34a..e71f716 100644
af9b8b
--- a/server/core.c
af9b8b
+++ b/server/core.c
af9b8b
@@ -3115,7 +3115,8 @@ enum server_token_type {
af9b8b
     SrvTk_MINIMAL,       /* eg: Apache/2.0.41 */
af9b8b
     SrvTk_OS,            /* eg: Apache/2.0.41 (UNIX) */
af9b8b
     SrvTk_FULL,          /* eg: Apache/2.0.41 (UNIX) PHP/4.2.2 FooBar/1.2b */
33b929
-    SrvTk_PRODUCT_ONLY   /* eg: Apache */
af9b8b
+    SrvTk_FULL_RELEASE,  /* eg: Apache/2.0.41 (UNIX) (Release 32.el7) PHP/4.2.2 FooBar/1.2b */
af9b8b
+    SrvTk_PRODUCT_ONLY   /* eg: Apache */
af9b8b
 };
af9b8b
 static enum server_token_type ap_server_tokens = SrvTk_FULL;
af9b8b
 
af9b8b
@@ -3191,7 +3192,10 @@ static void set_banner(apr_pool_t *pconf)
af9b8b
     else if (ap_server_tokens == SrvTk_MAJOR) {
af9b8b
         ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MAJORVERSION);
af9b8b
     }
af9b8b
-    else {
af9b8b
+    else if (ap_server_tokens == SrvTk_FULL_RELEASE) {
af9b8b
+        ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ") (Release @RELEASE@)");
af9b8b
+    }
af9b8b
+    else {        
af9b8b
         ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ")");
af9b8b
     }
af9b8b
 
af9b8b
@@ -3199,7 +3203,7 @@ static void set_banner(apr_pool_t *pconf)
af9b8b
      * Lock the server_banner string if we're not displaying
af9b8b
      * the full set of tokens
af9b8b
      */
af9b8b
-    if (ap_server_tokens != SrvTk_FULL) {
af9b8b
+    if (ap_server_tokens != SrvTk_FULL && ap_server_tokens != SrvTk_FULL_RELEASE) {
af9b8b
         banner_locked++;
af9b8b
     }
af9b8b
     server_description = AP_SERVER_BASEVERSION " (" PLATFORM ")";
af9b8b
@@ -3232,8 +3236,11 @@ static const char *set_serv_tokens(cmd_parms *cmd, void *dummy,
33b929
     else if (!strcasecmp(arg, "Full")) {
af9b8b
         ap_server_tokens = SrvTk_FULL;
af9b8b
     }
33b929
+    else if (!strcasecmp(arg, "Full-Release")) {
af9b8b
+        ap_server_tokens = SrvTk_FULL_RELEASE;
af9b8b
+    }
af9b8b
     else {
33b929
-        return "ServerTokens takes 1 argument: 'Prod(uctOnly)', 'Major', 'Minor', 'Min(imal)', 'OS', or 'Full'";
33b929
+        return "ServerTokens takes 1 argument: 'Prod(uctOnly)', 'Major', 'Minor', 'Min(imal)', 'OS', 'Full' or 'Full-Release'";
af9b8b
     }
af9b8b
 
af9b8b
     return NULL;