Use GET method as fallback if HEAD fails

Created on 17 January 2023, almost 2 years ago
Updated 4 September 2024, 4 months ago

Problem/Motivation

Certain pages return 404 when making a HEAD request, but they return 200 if GET is used; in this case the broken links report would be inaccurate and report correct pages as incorrect. For many sites with many links it would require a lot of work to change each individual link to GET.

Steps to reproduce

Create a page with a link to page that behaves like described in 'Motivation' (e.g. https://www.bible.com/bible/3290/MAT.1.MTHB). Then run checking the links and see the report.

Proposed resolution

Create a GET fallback for HEAD requests. If a HEAD request fails, a GET request to the target link would be called.

✨ Feature request
Status

Needs work

Version

2.1

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia Livecan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024