Skip to content

Commit

Permalink
feat: fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Aug 14, 2024
1 parent 2f5f764 commit fcc3e7b
Show file tree
Hide file tree
Showing 2 changed files with 358 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kong/llm/drivers/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ function _M.pre_request(conf, request_table)
local auth_param_location = conf.auth and conf.auth.param_location

if auth_param_name and auth_param_value and auth_param_location == "body" and request_table then
request_table[auth_param_name] = auth_param_value
if request_table[auth_param_name] == nil or not conf.auth.allow_auth_override then
request_table[auth_param_name] = auth_param_value
end
end

-- retrieve the plugin name
Expand Down
Loading

0 comments on commit fcc3e7b

Please sign in to comment.