(tomcat) branch 9.0.x updated: Doc update after pattern matching changes
[email protected] Fri, 31 Jul 2026 17:30:53 +0000
| Newsgroups | gmane.comp.jakarta.tomcat.devel |
|---|---|
| Message-ID | <178551905395.829146.18007258954209954467@gitbox3-he-fi.apache.org> |
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new db74ede59e Doc update after pattern matching changes
db74ede59e is described below
commit db74ede59e22629317752be08a6fa66b1d485b88
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 8c87912828..5060b4ff6f 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 7523e3b848..4a4d59588a 100644
--- a/webapps/docs/config/http.xml
+++ b/webapps/docs/config/http.xml
@@ -710,11 +710,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">
@@ -776,10 +776,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">