Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
madhawa-gunasekara authored and Madhawa Gunasekara committed Sep 24, 2024
1 parent 6e177ae commit 97c45c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apisix/plugins/clickhouse-logger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion apisix/plugins/http-logger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97c45c1

Please sign in to comment.