Skip to content

Commit 4bf7d19

Browse files
committed
Enforce corrent Content-Type for webhook
1 parent 1dd267e commit 4bf7d19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Caddyfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#delivery-headers
2222
@valid_webhook {
2323
method POST
24+
header Content-Type application/json
2425
header User-Agent GitHub-Hookshot/*
2526
header X-GitHub-Event ping
2627
header X-GitHub-Event push

0 commit comments

Comments
 (0)