(tomcat) branch 10.1.x updated: Doc update after pattern matching changes
[email protected] Fri, 31 Jul 2026 17:30:37 +0000
| Newsgroups | gmane.comp.jakarta.tomcat.devel |
|---|---|
| Message-ID | <178551903712.828017.12707333134139432842@gitbox3-he-fi.apache.org> |
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 71450793c7 Doc update after pattern matching changes
71450793c7 is described below
commit 71450793c763ed37d8558267e5bca011753d1f43
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 4672115e83..84bd13214b 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 b85d42838d..ca5aa6de08 100644
--- a/webapps/docs/config/http.xml
+++ b/webapps/docs/config/http.xml
@@ -694,11 +694,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">
@@ -755,10 +755,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">