From f0a96bb9cd0546d87d316a4ab186021e2f3b6ef7 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Dec 2019 19:30:27 +1000 Subject: Log both origin and destination in a redirect loop. --- apt-panopticon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index cb9b665..7f1d357 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -356,7 +356,7 @@ checkHEAD = function (host, URL, r, retry, sanity) end if location == URL then - E(" redirect loop! " .. check .. " " .. host .. " -> \n" .. URL, PU.scheme, "", host) + E(" redirect loop! " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location, PU.scheme, "", host) elseif nil == pu.host then I(" relative redirect. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location) checkHEAD(host, PU.scheme .. "://" .. PU.host .. location, r + 1, retry, sanity) -- cgit v1.1