Skip to content

Commit

Permalink
Fix a broken example in Lua filter docs (envoyproxy#19086)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jausovec <[email protected]>
  • Loading branch information
peterj authored Nov 24, 2021
1 parent 5c83001 commit 25bf301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/root/configuration/http/http_filters/lua_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ its keys can only be *string* or *numeric*.
function envoy_on_request(request_handle)
local headers = request_handle:headers()
request_handle:streamInfo():dynamicMetadata():set("envoy.filters.http.lua", "request.info", {
auth: headers:get("authorization"),
token: headers:get("x-request-token"),
auth = headers:get("authorization"),
token = headers:get("x-request-token"),
})
end
Expand Down

0 comments on commit 25bf301

Please sign in to comment.