Skip to content

Commit 9780a8f

Browse files
committed
Bug-fix: Corrected DecompressingEntity to return null Content-Encoding (no encoding)
1 parent 0d4b9a9 commit 9780a8f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,12 @@ public long getContentLength() {
8282
return -1;
8383
}
8484

85+
/**
86+
* Content is no longer encoded
87+
*/
8588
@Override
86-
public boolean isRepeatable() {
87-
return super.isRepeatable();
88-
}
89-
90-
@Override
91-
public boolean isStreaming() {
92-
return super.isStreaming();
89+
public String getContentEncoding() {
90+
return null;
9391
}
9492

9593
/**

0 commit comments

Comments
 (0)