Skip to content

Commit 81d3348

Browse files
committed
Allow encrypted_headers to be sent in via sequin config import
1 parent 6f6cc76 commit 81d3348

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/sequin/transforms/transforms.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,11 @@ defmodule Sequin.Transforms do
435435
{:error, error} -> {:halt, {:error, error}}
436436
end
437437

438-
# Ignore encrypted_headers until encryption/decryption works
439438
"encrypted_headers" ->
440-
{:cont, {:ok, acc}}
439+
case parse_headers(value) do
440+
{:ok, headers} -> {:cont, {:ok, Map.put(acc, :encrypted_headers, headers)}}
441+
{:error, error} -> {:halt, {:error, error}}
442+
end
441443

442444
"webhook.site" ->
443445
if value in [true, "true"] do

0 commit comments

Comments
 (0)