This commit is contained in:
Shinigami92 2022-12-12 22:18:29 +01:00
parent a650b1f369
commit eab2342d91

View file

@ -79,7 +79,7 @@ export default defineEventHandler(async (event) => {
if (!ogImageUrl.startsWith('https')) {
// If the og:image is not https, we can't use it
throw createError({
statusCode: 406,
statusCode: 404, // Must be 404 so the srcset can fallback to the default image
statusMessage: 'og:image must be https.',
})
}