Skip to content

Commit

Permalink
Fix off by one issue in tests found while investigating BZ 66591
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed May 3, 2023
1 parent 6409899 commit a3423dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/org/apache/coyote/ajp/TesterAjpMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public String readHeaderName() {
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;
Expand Down

0 comments on commit a3423dc

Please sign in to comment.