(tomcat) branch 11.0.x updated: Doc update after pattern matching changes
[email protected] Fri, 31 Jul 2026 17:28:49 +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 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 929d3abf5e Doc update after pattern matching changes
929d3abf5e is described below
commit 929d3abf5e3668da483554e96edfaad0059dc282
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 06f07a7042..33bc4148a3 100644
--- a/webapps/docs/config/http.xml
+++ b/webapps/docs/config/http.xml
@@ -676,11 +676,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">
@@ -726,10 +726,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">