campeon23 / split-fetcher

The code is a concurrent file downloader in Go that splits a file into multiple parts, downloads them in parallel, and assembles the final file, with support for Etag validation to ensure file integrity.
MIT License
1 stars 0 forks source link

Potential Leakage of HTTP Response Body #90

Open campeon23 opened 1 year ago

campeon23 commented 1 year ago
  • Package: downloader
  • Function: DownloadFileChunk
  • Line of Code: Commented out defer resp.Body.Close() (Approx lines: 225-235)
  • Description: Ensure that the HTTP response body is closed after reading from it to prevent potential resource leaks.

Severity: High