From c82125f665c8a49b23051b493f13e6180e7e4476 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 2 Aug 2025 12:16:49 +0200 Subject: [PATCH] Bug-fix: Corrected DecompressingEntity to return null Content-Encoding (no encoding) --- .../http/entity/compress/DecompressingEntity.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java b/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java index a5c8af0cb0..ba5bfd4654 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java @@ -82,14 +82,12 @@ public long getContentLength() { return -1; } + /** + * Content is no longer encoded + */ @Override - public boolean isRepeatable() { - return super.isRepeatable(); - } - - @Override - public boolean isStreaming() { - return super.isStreaming(); + public String getContentEncoding() { + return null; } /**