Skip to content

fix: reject incomplete HTTP and media downloads - #1

Merged
SamoTech merged 1 commit into
mainfrom
fix/incomplete-download-engine-responses
Dec 2, 2026
Merged

SamoTech merged 1 commit into
mainfrom
fix/incomplete-download-engine-responses

Conversation

@SamoTech

@SamoTech SamoTech commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Changes

  • Reject unsolicited HTTP 206 responses on full direct downloads, full progressive audio/video transfers, and whole HLS segments. Requested resume ranges and HLS byte ranges still take their existing validation paths.
  • Cancel and join segmented HTTP workers before deleting their preallocated staging file, so fallback and retries do not race a worker that still has the file open.
  • Add loopback regression tests for the direct, progressive audio, and HLS cases.

Validation

Run debug APK build, JVM engine tests, and Android lint in Android CI. The tests use controlled local payloads and do not imply compatibility with every public provider.

@SamoTech
SamoTech merged commit c208ac9 into main Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant