Skip to content

Commit

Permalink
style(secret): pre to scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanXin-Chen committed Aug 25, 2024
1 parent e2a8b86 commit cb26bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apisix/secret/aws.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ local function make_request_to_aws(conf, key)
})

local default_endpoint = "https://secretsmanager." .. region .. ".amazonaws.com"
local pre, host, port, _, _ = unpack(http:parse_uri(conf.endpoint_url or default_endpoint))
local endpoint = pre .. "://" .. host
local scheme, host, port, _, _ = unpack(http:parse_uri(conf.endpoint_url or default_endpoint))
local endpoint = scheme .. "://" .. host

local sm = aws_instance:SecretsManager({
credentials = credentials,
Expand Down

0 comments on commit cb26bb8

Please sign in to comment.