From 82977ddd88e8bc6e5644bf2df5980a3c8af9117b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 15 Jun 2026 11:20:30 +0000 Subject: [PATCH] Accept HTTP 415 in lychee link checker Two valid publication URLs (an OJS journal article and a ccneuro.org PDF) fail the site-health link check with 415 Unsupported Media Type. The servers reject lychee's request based on the Accept header even though the resources load fine in a browser. Treat 415 as success, consistent with how 403/405 server quirks are already handled. --- lychee.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lychee.toml b/lychee.toml index 2f49b0d..ebe9af0 100644 --- a/lychee.toml +++ b/lychee.toml @@ -26,8 +26,11 @@ user_agent = "Mozilla/5.0 (compatible; lychee-link-checker; +https://lychee.cli. # this on a request that will succeed if you retry or wait # - 401: paywalled but exists # - 403/405/429: bot-protection / rate-limit / method-not-allowed +# - 415: some servers (e.g. OJS journal platforms, ccneuro.org PDFs) +# reject lychee's request based on the Accept header even though the +# resource exists and loads in a browser. # - 999: LinkedIn's bot-detection response -accept = [200, 202, 204, 206, 401, 403, 405, 429, 999] +accept = [200, 202, 204, 206, 401, 403, 405, 415, 429, 999] # Hosts to skip: # - pearsonlab.github.io: this is the site we're building. The sitemap