Skip to content

Commit

Permalink
fix: incorrect request_headers reference in lua script (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitpuertolas authored Apr 18, 2024
1 parent 8f8bbaf commit 229eff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datadome-istio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.3.1"
description: A Helm chart for Kubernetes
name: datadome-istio
version: 0.4.2
version: 0.4.3
2 changes: 1 addition & 1 deletion datadome-istio/files/datadome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function envoy_on_request(request_handle)
local datadome_response_headers = parse_xdd_header(headers['x-datadome-headers'])

-- Unconditionally update the request headers for logging purposes
for request_header, _ in pairs(request_headers) do
for request_header, _ in pairs(datadome_request_headers) do
request_handle:headers():replace(request_header, headers[request_header])
end

Expand Down

0 comments on commit 229eff6

Please sign in to comment.