This is an automated email from the ASF dual-hosted git repository.

markt 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 a738d8f155 Code clean-up. Formatting. No functional change.
a738d8f155 is described below

commit a738d8f155c3ccaa90032fc6cda08f13567bd8a8
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jan 16 10:19:23 2026 +0000

    Code clean-up. Formatting. No functional change.
    
    Need to trigger a CI build to test some BuildBot changes
---
 java/org/apache/coyote/ajp/Constants.java | 8 ++++----
 java/org/apache/coyote/http2/Stream.java  | 3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/java/org/apache/coyote/ajp/Constants.java 
b/java/org/apache/coyote/ajp/Constants.java
index ca93f3797f..d7de829219 100644
--- a/java/org/apache/coyote/ajp/Constants.java
+++ b/java/org/apache/coyote/ajp/Constants.java
@@ -104,10 +104,10 @@ public final class Constants {
     public static final int MAX_SEND_SIZE = MAX_PACKET_SIZE - SEND_HEAD_LEN;
 
     // Translates integer codes to names of HTTP methods
-    private static final String[] methodTransArray =
-            { Method.OPTIONS, Method.GET, Method.HEAD, Method.POST, 
Method.PUT, Method.DELETE, Method.TRACE, Method.PROPFIND, Method.PROPPATCH, 
Method.MKCOL, Method.COPY,
-                    Method.MOVE, Method.LOCK, Method.UNLOCK, "ACL", "REPORT", 
"VERSION-CONTROL", "CHECKIN", "CHECKOUT", "UNCHECKOUT",
-                    "SEARCH", "MKWORKSPACE", "UPDATE", "LABEL", "MERGE", 
"BASELINE-CONTROL", "MKACTIVITY" };
+    private static final String[] methodTransArray = { Method.OPTIONS, 
Method.GET, Method.HEAD, Method.POST, Method.PUT,
+            Method.DELETE, Method.TRACE, Method.PROPFIND, Method.PROPPATCH, 
Method.MKCOL, Method.COPY, Method.MOVE,
+            Method.LOCK, Method.UNLOCK, "ACL", "REPORT", "VERSION-CONTROL", 
"CHECKIN", "CHECKOUT", "UNCHECKOUT",
+            "SEARCH", "MKWORKSPACE", "UPDATE", "LABEL", "MERGE", 
"BASELINE-CONTROL", "MKACTIVITY" };
 
     /**
      * Converts an AJP coded HTTP method to the method name.
diff --git a/java/org/apache/coyote/http2/Stream.java 
b/java/org/apache/coyote/http2/Stream.java
index 6353095014..cc957311f5 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -512,7 +512,8 @@ class Stream extends AbstractNonZeroStream implements 
HeaderEmitter {
             coyoteRequest.serverName().setString(value);
         }
         // Match host name with SNI if required
-        if 
(!handler.getProtocol().getHttp11Protocol().checkSni(handler.getSniHostName(), 
coyoteRequest.serverName().getString())) {
+        if 
(!handler.getProtocol().getHttp11Protocol().checkSni(handler.getSniHostName(),
+                coyoteRequest.serverName().getString())) {
             throw new HpackException(sm.getString("stream.host.sni", 
getConnectionId(), getIdAsString(), value,
                     handler.getSniHostName()));
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to