From 1207e862d4a417e6c13f7b8cc12db200491538c2 Mon Sep 17 00:00:00 2001 From: RiseForever Date: Thu, 27 Aug 2026 21:55:11 +0800 Subject: [PATCH] Update Webmentions.astro --- src/components/Webmentions.astro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Webmentions.astro b/src/components/Webmentions.astro index 7e5523d..5fbc29d 100644 --- a/src/components/Webmentions.astro +++ b/src/components/Webmentions.astro @@ -570,7 +570,11 @@ const getEndpoint = endpoint ? getWebmentionEndpoint(endpoint, 'get') : ''; fetch(form.action, { method: 'POST', body, - headers: { Accept: 'application/json' } + // webmentiond currently requires this Content-Type without a charset suffix. + headers: { + Accept: 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded' + } }).then(async (response) => { if (!response.ok) { const message = plainText(await response.text());