aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
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