From 4955863bb8b7e3a7f25ecca89a1017732f5891c0 Mon Sep 17 00:00:00 2001 From: Sven Date: Tue, 17 Mar 2026 12:18:20 +0100 Subject: [PATCH] fix(startup): add empty body and timeout to webmention poller curl The bodyless POST (no Content-Type/Content-Length) caused curl error 52 (empty reply from server). Adding `-d ""` sends proper headers and `--max-time 300` prevents hangs on long-running webmention processing. Co-Authored-By: Claude Opus 4.6 --- start.example.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.example.sh b/start.example.sh index e6164e8c..7097f7c2 100644 --- a/start.example.sh +++ b/start.example.sh @@ -88,7 +88,7 @@ WEBMENTION_ORIGIN="${PUBLICATION_URL:-${SITE_URL:-}}" )" if [ -n "$TOKEN" ]; then - RESULT="$(curl -sS -X POST "${WEBMENTION_ENDPOINT}?token=${TOKEN}" 2>&1 || true)" + RESULT="$(curl -sS --max-time 300 -X POST -d "" "${WEBMENTION_ENDPOINT}?token=${TOKEN}" 2>&1 || true)" echo "[webmention] $(date '+%Y-%m-%d %H:%M:%S') - ${RESULT:-ok}" else echo "[webmention] $(date '+%Y-%m-%d %H:%M:%S') - token generation failed"