Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yzfeng2020 committed Dec 13, 2024
1 parent 6481555 commit 36bb54d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
final DecodedHttpRequestWriter decodedReq =
(req instanceof DecodedHttpRequestWriter) ?
(DecodedHttpRequestWriter) req : null;
if (decodedReq != null && decodedReq.maxRequestLength() > 0
&& contentLength > decodedReq.maxRequestLength()) {
if (decodedReq != null && decodedReq.maxRequestLength() > 0 &&
contentLength > decodedReq.maxRequestLength()) {
abortLargeRequest(ctx, decodedReq, id, endOfStream, true, keepAliveHandler);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ public void onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers
if (Flags.allowLargeRequestEarlyRejection()) {
final DecodedHttpRequestWriter decodedReq =
(req instanceof DecodedHttpRequestWriter) ? (DecodedHttpRequestWriter) req : null;
if (decodedReq != null && decodedReq.maxRequestLength() > 0
&& contentLength > decodedReq.maxRequestLength()) {
if (decodedReq != null && decodedReq.maxRequestLength() > 0 &&
contentLength > decodedReq.maxRequestLength()) {
abortLargeRequest(decodedReq, endOfStream, true);
}
}
Expand Down

0 comments on commit 36bb54d

Please sign in to comment.