204 requires body to be null

Otherwise the Response constructor throws
This commit is contained in:
Manav Rathi
2025-04-29 11:26:36 +05:30
parent 2d3734bf14
commit 356f98bf52

View File

@@ -328,7 +328,7 @@ const handleGenerateHLSWrite = async (
if (!result) {
// This video doesn't require stream generation.
return new Response("", { status: 204 });
return new Response(null, { status: 204 });
}
const { playlistPath, videoPath } = result;