Skip to content

Commit

Permalink
Fix throwing with HTTP2 unknown settings frame id
Browse files Browse the repository at this point in the history
  • Loading branch information
NightlyNexus committed Jan 29, 2016
1 parent 38ddfed commit 962edbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okhttp/src/main/java/okhttp3/internal/framed/Http2.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 962edbc

Please sign in to comment.