Skip to content

Commit 1443a1a

Browse files
aogburnfl4via
authored andcommitted
[UNDERTOW-2060] fix double AJP response
1 parent 5261e01 commit 1443a1a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/src/main/java/io/undertow/server/protocol/ajp/AjpReadListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class AjpReadListener implements ChannelListener<StreamSourceChannel> {
5858
private static final byte[] CPONG = {'A', 'B', 0, 1, 9};
5959
private static final byte[] SEND_HEADERS_INTERNAL_SERVER_ERROR_MSG = {'A', 'B', 0, 8, 4, (byte)((500 >> 8) & 0xFF) , (byte)(500 & 0xFF), 0, 0, '\0', 0, 0};
6060
private static final byte[] SEND_HEADERS_BAD_REQUEST_MSG = {'A', 'B', 0, 8, 4, (byte)((400 >> 8) & 0xFF) , (byte)(400 & 0xFF), 0, 0, '\0', 0, 0};
61-
private static final byte[] END_RESPONSE = {'A', 'B', 0, 2, 5, 1};
61+
private static final byte[] END_RESPONSE = {'A', 'B', 0, 2, 5, 0};
6262

6363
private final AjpServerConnection connection;
6464
private final String scheme;
@@ -235,7 +235,6 @@ public void handleEvent(AjpServerResponseConduit channel) {
235235
if(oldState.badRequest) {
236236
httpServerExchange.setStatusCode(StatusCodes.BAD_REQUEST);
237237
httpServerExchange.endExchange();
238-
handleBadRequest();
239238
safeClose(connection);
240239
} else {
241240
Connectors.executeRootHandler(connection.getRootHandler(), httpServerExchange);

0 commit comments

Comments
 (0)