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

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