You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I understand HEAD requests allow speeding up the checks, and the 405 HTTP response is handled, many web servers don't handle HEAD requests, and won't send a 405 either.
This basically makes the elinks check useless, as it can't be relied upon.
Steps to reproduce
Create a page with a link to https://redis.io/topics/protocol inside it.
Run nanoc check elinks
Expected behavior
This page does exist, and if users were to click the link, they wouldn't get a 404. The test should therefore not fail,
Actual behavior
Because the server doesn't handle HEAD requests, and doesn't return 405, the test fails, when the page actually exists.
Fixing this
I'm absolutely fine opening a PR fixing this, either by entirely removing the HEAD request, or any other solution proposed.
I want to make sure this kind of change would be approved though. And a quick search didn't show any other similar issue.
The text was updated successfully, but these errors were encountered:
An alternative could be to perform a HEAD request and fall back to GET if the HEAD returns a 404, but I don’t see the benefit of doing that over doing a GET in the first place.
While I understand HEAD requests allow speeding up the checks, and the 405 HTTP response is handled, many web servers don't handle HEAD requests, and won't send a 405 either.
This basically makes the elinks check useless, as it can't be relied upon.
Steps to reproduce
https://redis.io/topics/protocol
inside it.nanoc check elinks
Expected behavior
This page does exist, and if users were to click the link, they wouldn't get a 404. The test should therefore not fail,
Actual behavior
Because the server doesn't handle HEAD requests, and doesn't return 405, the test fails, when the page actually exists.
Fixing this
I'm absolutely fine opening a PR fixing this, either by entirely removing the HEAD request, or any other solution proposed.
I want to make sure this kind of change would be approved though. And a quick search didn't show any other similar issue.
The text was updated successfully, but these errors were encountered: