You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/05/03 11:21:09 UTC

[tomcat] branch 10.1.x updated: Fix off by one issue in tests found while investigating BZ 66591

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 a3423dc649 Fix off by one issue in tests found while investigating BZ 66591
a3423dc649 is described below

commit a3423dc6496ff2055edcc2f0be26d831d31f6a06
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 3 12:09:46 2023 +0100

    Fix off by one issue in tests found while investigating BZ 66591
---
 test/org/apache/coyote/ajp/TesterAjpMessage.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/ajp/TesterAjpMessage.java b/test/org/apache/coyote/ajp/TesterAjpMessage.java
index 1c411915f4..806713557c 100644
--- a/test/org/apache/coyote/ajp/TesterAjpMessage.java
+++ b/test/org/apache/coyote/ajp/TesterAjpMessage.java
@@ -66,7 +66,7 @@ public class TesterAjpMessage extends AjpMessage {
         byte b = readByte();
         if ((b & 0xFF) == 0xA0) {
             // Coded header
-            return Constants.getResponseHeaderForCode(readByte());
+            return Constants.getResponseHeaderForCode(readByte() - 1);
         } else {
             int len = (b & 0xFF) << 8;
             len += getByte() & 0xFF;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org