diff options
author | onefang | 2019-12-24 19:32:06 +1000 |
---|---|---|
committer | onefang | 2019-12-24 19:32:06 +1000 |
commit | c32b9afb51462163f6c9c5c7fa85cf314ddc371d (patch) | |
tree | b919dcc4fcda33bc101903a8133b10df002b2ea7 | |
parent | Oops, fix different host redirection. (diff) | |
download | apt-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!
-rwxr-xr-x | apt-panopticon.lua | 3 |
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 |