aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-24 19:32:06 +1000
committeronefang2019-12-24 19:32:06 +1000
commitc32b9afb51462163f6c9c5c7fa85cf314ddc371d (patch)
treeb919dcc4fcda33bc101903a8133b10df002b2ea7
parentOops, fix different host redirection. (diff)
downloadapt-panopticon-c32b9afb51462163f6c9c5c7fa85cf314ddc371d.zip
apt-panopticon-c32b9afb51462163f6c9c5c7fa85cf314ddc371d.tar.gz
apt-panopticon-c32b9afb51462163f6c9c5c7fa85cf314ddc371d.tar.bz2
apt-panopticon-c32b9afb51462163f6c9c5c7fa85cf314ddc371d.tar.xz
Make URL sanity test more generic.
And make it more insane! Muahahaha!
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index de2d43b..39e9fd2 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -387,7 +387,8 @@ local checkTimeouts = function(host, scheme, URL)
387 totalTimeouts = totalTimeouts + timeouts; timeouts = 0 387 totalTimeouts = totalTimeouts + timeouts; timeouts = 0
388 checkHEAD(host, scheme .. "://" .. URL) 388 checkHEAD(host, scheme .. "://" .. URL)
389 if APT.testing("URLSanity") then 389 if APT.testing("URLSanity") then
390 URL = URL:gsub("merged/", "merged///") 390 URL = URL:gsub("/", "///")
391 URL = URL:gsub("///", "/", 1)
391 checkHEAD(host, scheme .. "://" .. URL, 0, 0, true) 392 checkHEAD(host, scheme .. "://" .. URL, 0, 0, true)
392 end 393 end
393 if nil ~= cor then 394 if nil ~= cor then