[Java][Native] Fix request compression (#22688)

* fix request compression

* fix edge case

* regenerated samples
This commit is contained in:
Ilya Nemtsev
2026-01-19 15:37:22 +07:00
committed by GitHub
parent 73c9c1cbe5
commit f355dc4c5c
8 changed files with 131 additions and 8 deletions

View File

@@ -478,7 +478,7 @@ public class ApiClient {
if (encoding.isPresent()) {
for (String token : encoding.get().split(",")) {
if ("gzip".equalsIgnoreCase(token.trim())) {
return new GZIPInputStream(body);
return new GZIPInputStream(body, 8192);
}
}
}