(tomcat) branch main updated: Doc update after pattern matching changes

[email protected] Fri, 31 Jul 2026 17:28:02 +0000
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 34cf6773ae Doc update after pattern matching changes
34cf6773ae is described below

commit 34cf6773aea46a006860286c2724434ff849de5e
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jul 31 18:27:42 2026 +0100

    Doc update after pattern matching changes
---
 test/org/apache/coyote/http11/TestHttp11Processor.java |  1 +
 webapps/docs/config/http.xml                           | 18 +++++++++---------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/test/org/apache/coyote/http11/TestHttp11Processor.java b/test/org/apache/coyote/http11/TestHttp11Processor.java
index b1db3dfe7e..bdaa375c99 100644
--- a/test/org/apache/coyote/http11/TestHttp11Processor.java
+++ b/test/org/apache/coyote/http11/TestHttp11Processor.java
@@ -2202,6 +2202,7 @@ public class TestHttp11Processor extends TomcatBaseTest {
         Assert.assertFalse(newEncodings.contains("gzip"));
     }
 
+
     @Test
     public void testRestrictedUserAgents() throws Exception {
         Tomcat tomcat = getTomcatInstance();
diff --git a/webapps/docs/config/http.xml b/webapps/docs/config/http.xml
index 33f357f71c..7d4e14bdbe 100644
--- a/webapps/docs/config/http.xml
+++ b/webapps/docs/config/http.xml
@@ -671,11 +671,11 @@
 
     <attribute name="noCompressionUserAgents" required="false">
       <p>The value is a regular expression (using <code>java.util.regex</code>)
-      matching the <code>user-agent</code> header of HTTP clients for which
-      compression should not be used,
-      because these clients, although they do advertise support for the
-      feature, have a broken implementation.
-      The default value is an empty String (regexp matching disabled).</p>
+      matching a sub-string of the <code>user-agent</code> header of HTTP
+      clients for which compression should not be used, because these clients,
+      although they do advertise support for the feature, have a broken
+      implementation. The default value is an empty String (regexp matching
+      disabled).</p>
     </attribute>
 
     <attribute name="processorCache" required="false">
@@ -721,10 +721,10 @@
 
     <attribute name="restrictedUserAgents" required="false">
       <p>The value is a regular expression (using <code>java.util.regex</code>)
-      matching the <code>user-agent</code> header of HTTP clients for which
-      HTTP/1.1 or HTTP/1.0 keep alive should not be used, even if the clients
-      advertise support for these features.
-      The default value is an empty String (regexp matching disabled).</p>
+      matching a sub-string of the <code>user-agent</code> header of HTTP
+      clients for which HTTP/1.1 or HTTP/1.0 keep alive should not be used, even
+      if the clients advertise support for these features. The default value is
+      an empty String (regexp matching disabled).</p>
     </attribute>
 
     <attribute name="server" required="false">