QA fixes: HEAD on page routes, Shorts signed-out 401, invite-page onboarding handoff, viewer check buttons clear of the overlay close button
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -1548,8 +1548,8 @@ const server = http.createServer(async (req, res) => {
|
||||
return json(res, 200, { ok: true, config: chain.getConfig() });
|
||||
}
|
||||
|
||||
// -- pages
|
||||
if (req.method === 'GET') {
|
||||
// -- pages (HEAD answered like GET so link previewers and crawlers see 200; Node drops the body)
|
||||
if (req.method === 'GET' || req.method === 'HEAD') {
|
||||
if (p === '/') return sendFile(res, path.join(PUBLIC_DIR, 'index.html'));
|
||||
if (p === '/ledger') return sendFile(res, path.join(PUBLIC_DIR, 'ledger.html'));
|
||||
if (p === '/contract') return sendFile(res, path.join(PUBLIC_DIR, 'contract.html'));
|
||||
|
||||
Reference in New Issue
Block a user