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:18 UTC
[tomcat] branch 8.5.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 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new deab34e93a Fix off by one issue in tests found while investigating BZ 66591
deab34e93a is described below
commit deab34e93a20c5777bf9a1eb6bcf31e1082753d9
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