Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak committed Aug 21, 2023
1 parent bb3b31a commit 1164683
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ private static boolean shouldSendAcceptGzip(Config cf) {
@Override
public ListenableFuture<Response> execute(Request request) {
Request augmentedRequest = acceptEncoding(request, sendAcceptGzip);
// In cases where gzip is not expected, we continue to handle gzipped responses to avoid abrupt failures
// against servers which hard-code 'Content-Encoding: gzip' responses without checking request headers.
return DialogueFutures.transform(delegate.execute(augmentedRequest), ContentDecodingChannel::decompress);
}

Expand Down

0 comments on commit 1164683

Please sign in to comment.