diff --git a/src/controllers/auth/anilist/index.ts b/src/controllers/auth/anilist/index.ts index 602974c..6b12a6a 100644 --- a/src/controllers/auth/anilist/index.ts +++ b/src/controllers/auth/anilist/index.ts @@ -117,6 +117,9 @@ app.openapi(route, async (c) => { return c.json(ErrorResponse, { status: 500 }); } + c.header("Content-Type", "text/x-unknown"); + c.header("content-encoding", "identity"); + c.header("transfer-encoding", "chunked"); return streamSSE( c, async (stream) => { @@ -174,7 +177,7 @@ app.openapi(route, async (c) => { continue; } - await fetchEpisodes(media.id, true).then(({ episodes }) => { + await fetchEpisodes(media.id, true).then((episodes) => { if (episodes.length === 0) { return; }