From 962edbc4ae78e1d25dead1901ddb83879b394eba Mon Sep 17 00:00:00 2001 From: Eric Cochran Date: Fri, 29 Jan 2016 13:27:25 -0800 Subject: [PATCH] Fix throwing with HTTP2 unknown settings frame id --- okhttp/src/main/java/okhttp3/internal/framed/Http2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okhttp/src/main/java/okhttp3/internal/framed/Http2.java b/okhttp/src/main/java/okhttp3/internal/framed/Http2.java index 78ca9ce79976..a6c177cc608b 100644 --- a/okhttp/src/main/java/okhttp3/internal/framed/Http2.java +++ b/okhttp/src/main/java/okhttp3/internal/framed/Http2.java @@ -294,7 +294,7 @@ private void readSettings(Handler handler, int length, byte flags, int streamId) case 6: // SETTINGS_MAX_HEADER_LIST_SIZE break; // Advisory only, so ignored. default: - throw ioException("PROTOCOL_ERROR invalid settings id: %s", id); + break; // Must ignore setting with unknown id. } settings.set(id, 0, value); }