chore: add HEAD endpoint for /feed
This commit is contained in:
parent
e997ed42c6
commit
ca71f7b924
@ -116,3 +116,15 @@ export const GET = async () => {
|
|||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// The rss reader may prefetch by using HEAD method.
|
||||||
|
export const HEAD = async () => {
|
||||||
|
return new Response('', {
|
||||||
|
headers: {
|
||||||
|
Host: import.meta.env.SITE,
|
||||||
|
'Content-Type': 'application/xml',
|
||||||
|
Accept: '*/*',
|
||||||
|
Connection: 'keep-alive',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user