You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/04/18 05:53:58 UTC
[httpcomponents-core] branch master updated: HTTPCORE-673: fixes
incorrect handling of unknown parameters in HTTP/2 SETTINGS frame
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
The following commit(s) were added to refs/heads/master by this push:
new 9b131eb HTTPCORE-673: fixes incorrect handling of unknown parameters in HTTP/2 SETTINGS frame
9b131eb is described below
commit 9b131eb6b1c32184605d69a6573a5b721d216dc0
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Tue Apr 13 21:01:09 2021 +0200
HTTPCORE-673: fixes incorrect handling of unknown parameters in HTTP/2 SETTINGS frame
---
.../org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
index aa79ad1..6c85aaa 100644
--- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
+++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
@@ -1119,9 +1119,9 @@ abstract class AbstractH2StreamMultiplexer implements Identifiable, HttpConnecti
final H2Config.Builder configBuilder = H2Config.initial();
while (payload.hasRemaining()) {
final int code = payload.getShort();
+ final int value = payload.getInt();
final H2Param param = H2Param.valueOf(code);
if (param != null) {
- final int value = payload.getInt();
switch (param) {
case HEADER_TABLE_SIZE:
try {