Skip to content

Commit e6acf35

Browse files
authored
Merge pull request #1513 from TomasHofman/UNDERTOW-2305
UNDERTOW-2305 Fix NPE in Http2ClearClientProvider
2 parents 510bb19 + 856b608 commit e6acf35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/io/undertow/client/http2/Http2ClearClientProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public static String createSettingsFrame(OptionMap options, ByteBufferPool buffe
170170
if (options.contains(UndertowOptions.HTTP2_SETTINGS_MAX_HEADER_LIST_SIZE)) {
171171
pushOption(currentBuffer, Http2Setting.SETTINGS_MAX_HEADER_LIST_SIZE, options.get(UndertowOptions.HTTP2_SETTINGS_MAX_HEADER_LIST_SIZE));
172172
} else if(options.contains(UndertowOptions.MAX_HEADER_SIZE)) {
173-
pushOption(currentBuffer, Http2Setting.SETTINGS_MAX_HEADER_LIST_SIZE, options.get(UndertowOptions.HTTP2_SETTINGS_MAX_HEADER_LIST_SIZE));
173+
pushOption(currentBuffer, Http2Setting.SETTINGS_MAX_HEADER_LIST_SIZE, options.get(UndertowOptions.MAX_HEADER_SIZE));
174174
}
175175
currentBuffer.flip();
176176
return FlexBase64.encodeStringURL(currentBuffer, false);

0 commit comments

Comments
 (0)