fix(opds): probe filename when downloading PDFs and CBZ files, closes #2921 (#2932)

This commit is contained in:
Huang Xin
2026-01-12 17:55:50 +01:00
committed by GitHub
parent 48e2bfa82c
commit aaee04c290
3 changed files with 86 additions and 39 deletions
@@ -103,6 +103,7 @@ async function handleRequest(request: NextRequest, method: 'GET' | 'HEAD') {
return new NextResponse(null, {
status: 200,
headers: {
...Object.fromEntries(response.headers.entries()),
'Content-Type': contentType,
'Content-Length': contentLength || '',
'Cache-Control': 'public, max-age=300',