aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-24 19:30:27 +1000
committeronefang2019-12-24 19:30:27 +1000
commitf0a96bb9cd0546d87d316a4ab186021e2f3b6ef7 (patch)
tree312cd0f1912dbf39406d872d8cc9d58e2779e1a5
parentWhitespace clean up. (diff)
downloadapt-panopticon-f0a96bb9cd0546d87d316a4ab186021e2f3b6ef7.zip
apt-panopticon-f0a96bb9cd0546d87d316a4ab186021e2f3b6ef7.tar.gz
apt-panopticon-f0a96bb9cd0546d87d316a4ab186021e2f3b6ef7.tar.bz2
apt-panopticon-f0a96bb9cd0546d87d316a4ab186021e2f3b6ef7.tar.xz
Log both origin and destination in a redirect loop.
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
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)
356 end 356 end
357 357
358 if location == URL then 358 if location == URL then
359 E(" redirect loop! " .. check .. " " .. host .. " -> \n" .. URL, PU.scheme, "", host) 359 E(" redirect loop! " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location, PU.scheme, "", host)
360 elseif nil == pu.host then 360 elseif nil == pu.host then
361 I(" relative redirect. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location) 361 I(" relative redirect. " .. check .. " " .. host .. " -> \n" .. URL .. " -> " .. location)
362 checkHEAD(host, PU.scheme .. "://" .. PU.host .. location, r + 1, retry, sanity) 362 checkHEAD(host, PU.scheme .. "://" .. PU.host .. location, r + 1, retry, sanity)