aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-09 09:24:40 +1000
committeronefang2019-12-09 09:24:40 +1000
commite6542733d4bd88f64a71ed1baad03cf98cf819a3 (patch)
tree28757ea79728026d5f59c50919dafb704813596f
parentClean up the counting of errors and warnings. (diff)
downloadapt-panopticon-e6542733d4bd88f64a71ed1baad03cf98cf819a3.zip
apt-panopticon-e6542733d4bd88f64a71ed1baad03cf98cf819a3.tar.gz
apt-panopticon-e6542733d4bd88f64a71ed1baad03cf98cf819a3.tar.bz2
apt-panopticon-e6542733d4bd88f64a71ed1baad03cf98cf819a3.tar.xz
Don't miscount some redirections as Protocol changes.
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index db500e7..02d7d9e 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -521,7 +521,7 @@ checkHEAD = function (host, URL, r, retry, sanity)
521-- timeouts = timeouts - 1 -- Backoff the timeouts count if we managed to get through. 521-- timeouts = timeouts - 1 -- Backoff the timeouts count if we managed to get through.
522 if nil ~= location then 522 if nil ~= location then
523 pu = url.parse(location, defaultURL) 523 pu = url.parse(location, defaultURL)
524 if (pu.scheme ~= PU.scheme) then 524 if ('http' == location:sub(1, 4)) and (pu.scheme ~= PU.scheme) then -- Sometimes a location sans scheme is returned, this is not a protocol change.
525 if testing("Protocol") then W(" protocol changed during redirect! " .. check .. " " .. host .. " -> " .. URL .. " -> " .. location, PU.scheme, "Protocol", host) end 525 if testing("Protocol") then W(" protocol changed during redirect! " .. check .. " " .. host .. " -> " .. URL .. " -> " .. location, PU.scheme, "Protocol", host) end
526 if (pu.host == host) and pu.path == PU.path then D("Not testing protocol change " .. URL .. " -> " .. location); return end 526 if (pu.host == host) and pu.path == PU.path then D("Not testing protocol change " .. URL .. " -> " .. location); return end
527 end 527 end