neurolink icon indicating copy to clipboard operation
neurolink copied to clipboard

IMG-013: Missing Content-Length Validation

Open murdore opened this issue 1 month ago • 0 comments

Summary

URL downloader accepts responses with content-length: 0, resulting in empty downloads.

Root Cause

Lines 551-554 don't check if content-length is 0.

Fix

Add check if len === 0 and throw error before downloading.

Acceptance Criteria

  • [ ] Check if content-length header exists and is > 0
  • [ ] Throw error if content-length is 0
  • [ ] Add test for 0-length response rejection

murdore avatar Dec 01 '25 08:12 murdore