Skip to content

Commit

Permalink
Http proxy sets content length when uncompressed
Browse files Browse the repository at this point in the history
  • Loading branch information
apattidb authored and mostynb committed Jul 18, 2023
1 parent 913f14d commit 46ab6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/httpproxy/httpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (r *remoteHTTPProxyCache) Contains(ctx context.Context, kind cache.EntryKin

rsp, err := r.remote.Do(req)
if err == nil && rsp.StatusCode == http.StatusOK {
if kind != cache.CAS {
if kind != cache.CAS || !r.v2mode {
return true, rsp.ContentLength
}

Expand Down

0 comments on commit 46ab6a3

Please sign in to comment.