From e14629329f64f01073383398aac311ea27fbe32f Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 29 Sep 2019 12:25:45 +1000 Subject: checkURL -> checkHEAD --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a411e29..7ac867b 100644 --- a/README.md +++ b/README.md @@ -246,13 +246,13 @@ includes the IP this time. The inclusion of the IP causes checkRedirects() to call checkPaths(). -checkPaths() will call checkURL() for each of the reference files. +checkPaths() will call checkHEAD() for each of the reference files. -checkURL() uses LuaSocket (or LuaSec for HTTPS) to send a HEAD request to +checkHEAD() uses LuaSocket (or LuaSec for HTTPS) to send a HEAD request to the IP, with a Host header set to the original host name. Redirects will not be followed by that request. If the request returns a redirect, then -checkURL() is called recursively. If the redirect is to some host we are +checkHEAD() is called recursively. If the redirect is to some host we are not already checking, we call checkRedirects() on it, with an IP of "redir". This causes checkRedirects() to bypass the test that would otherwise call checkPaths(), instead gathering the IPs and fork as usual. -- cgit v1.1