compat(opds): add User-Agent header to fix downloads from Calibre Web OPDS (#2592)

This commit is contained in:
Huang Xin
2025-12-02 17:27:33 +08:00
committed by GitHub
parent 852f9f40ec
commit 75f6efe27a
2 changed files with 4 additions and 4 deletions
@@ -54,7 +54,6 @@ async function handleRequest(request: NextRequest, method: 'GET' | 'HEAD') {
if (!response.ok) {
console.error(`[OPDS Proxy] HTTP ${response.status} for ${url}`);
if (method === 'HEAD') {
console.log(`[OPDS Proxy] Response headers:`, response.headers);
if (response.status === 401) {
return new NextResponse(null, {
status: 403,