Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ private void write(ByteBuf data, boolean last) throws IOException {
data.release();
} else {
if (last) {
request.response().end(createBuffer(data), null);
if (!request.response().ended()) { // can happen when an exception occurs during JSON serialization with Jackson
request.response().end(createBuffer(data), null);
}
} else {
request.response().write(createBuffer(data), null);
}
Expand Down
Loading