This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new a477bb09a4 Fix off by one issue in tests found while investigating BZ 66591 a477bb09a4 is described below commit a477bb09a4a8fabb0c5d2d4114e2214bbb9cc48e 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org