diff options
author | onefang | 2019-12-24 19:30:27 +1000 |
---|---|---|
committer | onefang | 2019-12-24 19:30:27 +1000 |
commit | f0a96bb9cd0546d87d316a4ab186021e2f3b6ef7 (patch) | |
tree | 312cd0f1912dbf39406d872d8cc9d58e2779e1a5 | |
parent | Whitespace clean up. (diff) | |
download | apt-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-x | apt-panopticon.lua | 2 |
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) |