Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b84d1ec

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

1 file changed

+2Lines changed: 2 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/apify_client/_utils.py‎

Copy file name to clipboardExpand all lines: src/apify_client/_utils.py
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.