Skip to content

Commit 5804c36

Browse files
committed
test envoy hndlers
1 parent edfa9e3 commit 5804c36

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: v2
33
name: synapse
44
description: matrix synapse kubernetes deployment
5-
version: 2.0.2
5+
version: 2.0.3
66
appVersion: 1.149.1

charts/synapse/scripts/envoy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ static_resources:
328328
local synapse = require("synapse")
329329
330330
function envoy_on_request(request_handle)
331-
local headers = request_handle:headers()
332331
local hash_key = synapse.get_user_identifier_from_request(request_handle, {
333332
whoami_cluster = "httpd-client-reader",
334333
whoami_path = "/_matrix/client/v3/account/whoami",
@@ -338,6 +337,7 @@ static_resources:
338337
logging_token_length = 8
339338
})
340339
340+
local headers = request_handle:headers()
341341
if hash_key ~= nil then
342342
headers:add("X-Hash-Key", hash_key)
343343
return

0 commit comments

Comments
 (0)