forked from loafle/openapi-generator-original
[Java][Native] Fix request compression (#22688)
* fix request compression * fix edge case * regenerated samples
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user