new configuration version
This commit is contained in:
parent
b2a3ac3cfa
commit
933dec27b4
|
@ -46,7 +46,7 @@ spec:
|
|||
podDisruptionBudget:
|
||||
maxUnavailable: "50%"
|
||||
git:
|
||||
tag: "r-3d5124a6dc9c177bf140282895b219df06f36804"
|
||||
tag: "r-ad714e65042728051bc6dee19704df817b9c40b2"
|
||||
dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp"
|
||||
credentials: "git-credentials"
|
||||
keystores:
|
||||
|
|
|
@ -28,8 +28,22 @@ function inputHeader(req, resp)
|
|||
resp:send(404)
|
||||
return
|
||||
end
|
||||
local count = 0
|
||||
if values ~= nil then
|
||||
trace:info("Query param " .. param .. " value is " .. type(values))
|
||||
for i, value in pairs(values) do
|
||||
count = count + 1
|
||||
local lang = string.upper(value)
|
||||
if not validLanguages[lang] then
|
||||
trace:info("utility service called with invalid value for query param " .. param .. "=" .. value)
|
||||
resp:send(404)
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
if count ~= 1
|
||||
trace:info("utility service called with invalid values for query param " .. param)
|
||||
resp:send(404)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue