HTTP/2 throw statement missed
Motivation: The DefaultHttp2FrameWriter has an exception generated but is missing the throw keyword. Modifications: Insert the missing throw keyword. Result: Exception thrown when it was intended to be thrown.
This commit is contained in:
parent
a8e5fb12fa
commit
198f8fa95e
@ -86,7 +86,7 @@ public class DefaultHttp2FrameWriter implements Http2FrameWriter, Http2FrameSize
|
||||
@Override
|
||||
public void maxFrameSize(int max) throws Http2Exception {
|
||||
if (!isMaxFrameSizeValid(max)) {
|
||||
connectionError(FRAME_SIZE_ERROR, "Invalid MAX_FRAME_SIZE specified in sent settings: %d", max);
|
||||
throw connectionError(FRAME_SIZE_ERROR, "Invalid MAX_FRAME_SIZE specified in sent settings: %d", max);
|
||||
}
|
||||
maxFrameSize = max;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user