Skip to content

Commit b84d1ec

Browse files
authored
fix: Enable to add headers template in webhooks created dynamically (#419)
1 parent fa69122 commit b84d1ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/apify_client/_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ def encode_webhook_list_to_base64(webhooks: list[dict]) -> str:
128128
}
129129
if 'payload_template' in webhook:
130130
webhook_representation['payloadTemplate'] = webhook['payload_template']
131+
if 'headers_template' in webhook:
132+
webhook_representation['headersTemplate'] = webhook['headers_template']
131133
data.append(webhook_representation)
132134

133135
return base64.b64encode(json.dumps(data).encode('utf-8')).decode('ascii')

0 commit comments

Comments
 (0)