fixed regex for influxdb version

This commit is contained in:
gabryon99 2020-06-23 09:44:52 +02:00
parent 2bd509fa33
commit 77d5fd9706

View file

@ -1530,7 +1530,7 @@ local function getInfluxdbVersion(url, username, password)
local content = res.CONTENT or ""
-- case-insensitive match as HAProxy transforms headers to lowercase (see #3964)
return string.match(content:lower(), "\nx%-influxdb%-version: v([%d|%.]+)")
return string.match(content:lower(), "\nx%-influxdb%-version: v?([%d|%.]+)")
end
function driver:getInfluxdbVersion()