Update HttpContentCompressor to pass correct message to ObjectUtil (#11482)
Motivation: In #11256, We introduced `Iterable` as a parameter but later in review, it was removed. But we forgot to change `compressionOptionsIterable` to just `compressionOptions`. Modification: Changed `compressionOptionsIterable` to `compressionOptions`. Result: Correct ObjectUtil message
This commit is contained in:
parent
8cbdefae23
commit
6085cd7ab6
@ -167,7 +167,7 @@ public class HttpContentCompressor extends HttpContentEncoder {
|
|||||||
deflateOptions = StandardCompressionOptions.deflate();
|
deflateOptions = StandardCompressionOptions.deflate();
|
||||||
zstdOptions = StandardCompressionOptions.zstd();
|
zstdOptions = StandardCompressionOptions.zstd();
|
||||||
} else {
|
} else {
|
||||||
ObjectUtil.deepCheckNotNull("compressionOptionsIterable", compressionOptions);
|
ObjectUtil.deepCheckNotNull("compressionOptions", compressionOptions);
|
||||||
for (CompressionOptions compressionOption : compressionOptions) {
|
for (CompressionOptions compressionOption : compressionOptions) {
|
||||||
if (compressionOption instanceof BrotliOptions) {
|
if (compressionOption instanceof BrotliOptions) {
|
||||||
brotliOptions = (BrotliOptions) compressionOption;
|
brotliOptions = (BrotliOptions) compressionOption;
|
||||||
|
Loading…
Reference in New Issue
Block a user