From c32b9afb51462163f6c9c5c7fa85cf314ddc371d Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Dec 2019 19:32:06 +1000 Subject: Make URL sanity test more generic. And make it more insane! Muahahaha! --- apt-panopticon.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) totalTimeouts = totalTimeouts + timeouts; timeouts = 0 checkHEAD(host, scheme .. "://" .. URL) if APT.testing("URLSanity") then - URL = URL:gsub("merged/", "merged///") + URL = URL:gsub("/", "///") + URL = URL:gsub("///", "/", 1) checkHEAD(host, scheme .. "://" .. URL, 0, 0, true) end if nil ~= cor then -- cgit v1.1