diff --git a/apisix/plugins/clickhouse-logger.lua b/apisix/plugins/clickhouse-logger.lua index 6e13429db9e3..2810f61cce38 100644 --- a/apisix/plugins/clickhouse-logger.lua +++ b/apisix/plugins/clickhouse-logger.lua @@ -123,7 +123,8 @@ local function send_http_data(conf, log_message) end end - local request_uri = url_decoded.scheme .. "://" .. host .. ":" .. tostring(port) .. (#url_decoded.path ~= 0 and url_decoded.path or "/") + local request_uri = url_decoded.scheme .. "://" .. host .. ":" .. tostring(port) + .. (#url_decoded.path ~= 0 and url_decoded.path or "/") local auth_headers = { ["Host"] = host, diff --git a/apisix/plugins/http-logger.lua b/apisix/plugins/http-logger.lua index 33f028420c58..c41c9a9a131f 100644 --- a/apisix/plugins/http-logger.lua +++ b/apisix/plugins/http-logger.lua @@ -151,7 +151,8 @@ local function send_http_data(conf, log_message) body = log_message, } - local request_uri = url_decoded.scheme .. "://" .. host .. ":" .. tostring(port) .. (#url_decoded.path ~= 0 and url_decoded.path or "/") + local request_uri = url_decoded.scheme .. "://" .. host .. ":" .. tostring(port) + .. (#url_decoded.path ~= 0 and url_decoded.path or "/") if conf.keepalive then params.keepalive_timeout = conf.keepalive_timeout * 1000