mirror of https://github.com/grpc/grpc-java.git
okhttp: ignore unknown HTTP/2 settings
This commit is contained in:
parent
0fe2c5cca6
commit
ce17076859
|
|
@ -301,7 +301,8 @@ public final class Http2 implements Variant {
|
|||
case 6: // SETTINGS_MAX_HEADER_LIST_SIZE
|
||||
break; // Advisory only, so ignored.
|
||||
default:
|
||||
throw ioException("PROTOCOL_ERROR invalid settings id: %s", id);
|
||||
// Implementations MUST ignore any unknown or unsupported identifier.
|
||||
continue;
|
||||
}
|
||||
settings.set(id, 0, value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue