diff --git a/src/web/server.js b/src/web/server.js index 01bfc21..0b63566 100644 --- a/src/web/server.js +++ b/src/web/server.js @@ -210,7 +210,12 @@ export async function startWebServer(client) { const isApiPath = ['/api', '/auth', '/webhooks', '/sso'].some((p) => request.url.startsWith(p) ); - if (request.method === 'GET' && !isApiPath) { + // HEAD gehört dazu: Prüfer, die nur die Erreichbarkeit testen, + // fragen so an — Discord etwa, wenn du im Portal eine Datenschutz- + // oder AGB-Adresse hinterlegst. Ohne HEAD kam dort eine 404 zurück + // und Discord lehnte die Adresse als „nicht erlaubt" ab. + // Node lässt den Rumpf bei HEAD von selbst weg. + if ((request.method === 'GET' || request.method === 'HEAD') && !isApiPath) { return sendInjected(request, reply); } return reply.code(404).send({ error: 'not found' });