Ensure Http2FrameCodec uses Http2Settings.defaultSettings()

Motivation:

Http2FrameCodec should use Http2Settings.defaultSettings() when no Http2Settings were specified by the user.

Modifications:

Replace new Http2Settings() with Http2Settings.defaultSettings()

Result:

Use correct Http2Settings by default when using Http2FrameCodec in all cases.
This commit is contained in:
Norman Maurer 2017-07-30 07:33:17 +02:00
parent 068e64dbcf
commit 2988fb8eeb

View File

@ -127,7 +127,7 @@ public class Http2FrameCodec extends ChannelDuplexHandler {
* @param server {@code true} this is a server
*/
public Http2FrameCodec(boolean server, Http2FrameLogger frameLogger) {
this(server, new DefaultHttp2FrameWriter(), frameLogger, new Http2Settings());
this(server, new DefaultHttp2FrameWriter(), frameLogger, Http2Settings.defaultSettings());
}
// Visible for testing