From c94cbba00493a637fb667b0cd266562ce9c469ae Mon Sep 17 00:00:00 2001 From: Bruno Scheufler Date: Fri, 18 Oct 2024 14:14:30 +0200 Subject: [PATCH 1/3] Update webhooks.mdx --- pages/docs/platform/webhooks.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/docs/platform/webhooks.mdx b/pages/docs/platform/webhooks.mdx index ce1aad98e..fb0e2f14c 100644 --- a/pages/docs/platform/webhooks.mdx +++ b/pages/docs/platform/webhooks.mdx @@ -85,7 +85,7 @@ Transforms are defined as simple JavaScript functions that accept three argument The raw JSON payload from the POST request body - A map of HTTP headers sent along with the request as key-value pairs. + A map of HTTP headers sent along with the request as key-value pairs. Header names are standardized by making the first character and any characters following a hyphen uppercase and the rest lowercase. For more details, [check out](https://pkg.go.dev/net/http#CanonicalHeaderKey) the underlying implementation reference. A map of parsed query string parameters sent to the webhook URL. Values are all arrays to support multiple params for a single key. @@ -112,6 +112,12 @@ function transform(evt, headers = {}, queryParams = {}) { ### Example transforms + + 💡 Header names are standardized by making the first character and any characters following a hyphen uppercase and the rest lowercase. For more details, [check out](https://pkg.go.dev/net/http#CanonicalHeaderKey) the underlying implementation reference. + + Remember to check your transforms for header usage and make sure to use the correct case. + +
**Github** - Using headers @@ -237,4 +243,4 @@ inngest.createFunction( 💡 **Tip**: To test functions locally, copy an event from a webhook from the Inngest dashboard and use it with the Inngest dev server's `Send test` button. - \ No newline at end of file + From c99000b37a058d2fe1e050e169aee5fdf3986ad0 Mon Sep 17 00:00:00 2001 From: Bruno Scheufler Date: Fri, 18 Oct 2024 14:34:37 +0200 Subject: [PATCH 2/3] Update webhooks.mdx --- pages/docs/platform/webhooks.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/platform/webhooks.mdx b/pages/docs/platform/webhooks.mdx index fb0e2f14c..52491e4cd 100644 --- a/pages/docs/platform/webhooks.mdx +++ b/pages/docs/platform/webhooks.mdx @@ -85,7 +85,7 @@ Transforms are defined as simple JavaScript functions that accept three argument The raw JSON payload from the POST request body - A map of HTTP headers sent along with the request as key-value pairs. Header names are standardized by making the first character and any characters following a hyphen uppercase and the rest lowercase. For more details, [check out](https://pkg.go.dev/net/http#CanonicalHeaderKey) the underlying implementation reference. + A map of HTTP headers sent along with the request as key-value pairs. Header names are case-insensitive and are canonicalized by making the first character and any characters following a hyphen uppercase and the rest lowercase. For more details, [check out](https://pkg.go.dev/net/http#CanonicalHeaderKey) the underlying implementation reference. A map of parsed query string parameters sent to the webhook URL. Values are all arrays to support multiple params for a single key. @@ -113,7 +113,7 @@ function transform(evt, headers = {}, queryParams = {}) { ### Example transforms - 💡 Header names are standardized by making the first character and any characters following a hyphen uppercase and the rest lowercase. For more details, [check out](https://pkg.go.dev/net/http#CanonicalHeaderKey) the underlying implementation reference. + 💡 Header names are case-insensitive and canonicalized by making the first character and any characters following a hyphen uppercase and the rest lowercase. Remember to check your transforms for header usage and make sure to use the correct case. From d2e5b742e063f1c6ec1e33a7a761b0ee86c70972 Mon Sep 17 00:00:00 2001 From: Bruno Scheufler Date: Fri, 18 Oct 2024 14:35:13 +0200 Subject: [PATCH 3/3] Update webhooks.mdx --- pages/docs/platform/webhooks.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/platform/webhooks.mdx b/pages/docs/platform/webhooks.mdx index 52491e4cd..d1e976862 100644 --- a/pages/docs/platform/webhooks.mdx +++ b/pages/docs/platform/webhooks.mdx @@ -113,7 +113,7 @@ function transform(evt, headers = {}, queryParams = {}) { ### Example transforms - 💡 Header names are case-insensitive and canonicalized by making the first character and any characters following a hyphen uppercase and the rest lowercase. + 💡 Header names are case-insensitive and are canonicalized by making the first character and any characters following a hyphen uppercase and the rest lowercase. Remember to check your transforms for header usage and make sure to use the correct case.