Skip to content

Commit

Permalink
Fail partial downloads (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov authored Feb 6, 2025
1 parent 6aafbef commit 2090b45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/agent/http_cache/http_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func proxyDownloadFromURL(w http.ResponseWriter, url string) bool {
bytesRead, err := io.Copy(w, resp.Body)
if err != nil {
log.Printf("Proxying cache download for %s failed with %v\n", url, err)
return false
} else {
log.Printf("Proxying cache %s succeded! Proxies %d bytes!\n", url, bytesRead)
}
Expand Down

0 comments on commit 2090b45

Please sign in to comment.