Skip to content

Commit

Permalink
Relax can-add-content-length check
Browse files Browse the repository at this point in the history
  • Loading branch information
tkountis committed Dec 9, 2020
1 parent e7d36f3 commit 7433247
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ static boolean canAddResponseTransferEncodingProtocol(final int statusCode,
}

private static boolean canAddContentLength(final HttpMetaData metadata) {
// TODO once this bug is addressed (https://github.com/apple/servicetalk/pull/1213)
// we should relax the check here, remove content-encoding clause
return !hasContentHeaders(metadata.headers()) && !hasContentEncoding(metadata.headers()) &&
return !hasContentHeaders(metadata.headers()) &&
isSafeToAggregate(metadata) && !mayHaveTrailers(metadata);
}

Expand Down

0 comments on commit 7433247

Please sign in to comment.