Skip to content

Commit

Permalink
vert-x3#2663 Add missing .end() to response
Browse files Browse the repository at this point in the history
  • Loading branch information
komape committed Oct 30, 2024
1 parent 58a7050 commit 768bca1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ private void checkHandleNoMatch() {
.putHeader(HttpHeaderNames.ALLOW, allowedMethods.stream().map(HttpMethod::name).collect(Collectors.joining(","))).end();
} else if (this.request().method() != HttpMethod.HEAD && matchFailure == 415) {
// In case of a 415, send a header with the accepted content types
this.response().putHeader(HttpHeaderNames.ACCEPT, allowedContentTypes.stream().map(MIMEHeader::mediaType).collect(Collectors.joining(", ")));
this.response()
.putHeader(HttpHeaderNames.ACCEPT, allowedContentTypes.stream().map(MIMEHeader::mediaType).collect(Collectors.joining(", ")))
.end();
} else {
this.response().end();
}
Expand Down

0 comments on commit 768bca1

Please sign in to comment.