Skip to content

Commit 46ab6a3

Browse files
apattidbmostynb
authored andcommitted
Http proxy sets content length when uncompressed
1 parent 913f14d commit 46ab6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache/httpproxy/httpproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (r *remoteHTTPProxyCache) Contains(ctx context.Context, kind cache.EntryKin
231231

232232
rsp, err := r.remote.Do(req)
233233
if err == nil && rsp.StatusCode == http.StatusOK {
234-
if kind != cache.CAS {
234+
if kind != cache.CAS || !r.v2mode {
235235
return true, rsp.ContentLength
236236
}
237237

0 commit comments

Comments
 (0)