From 63bf5728b5ecf34394cc71c72304c4bc9973b50e Mon Sep 17 00:00:00 2001 From: "Michael B. Klein" Date: Mon, 18 Sep 2023 22:35:27 +0000 Subject: [PATCH] Fix request/response function header documentation --- docs/pages/docs/advanced-usage/request-response-functions.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/docs/advanced-usage/request-response-functions.mdx b/docs/pages/docs/advanced-usage/request-response-functions.mdx index e60cc37..ff0ceed 100644 --- a/docs/pages/docs/advanced-usage/request-response-functions.mdx +++ b/docs/pages/docs/advanced-usage/request-response-functions.mdx @@ -36,8 +36,8 @@ function handler(event) { ```JavaScript function handler(event) { var request = event.request; - request.headers['x-preflight-location'] = {value: 's3://image-bucket/path/to/correct/image.tif'}; - request.headers['x-preflight-dimensions'] = {value: JSON.stringify({ width: 640, height: 480 })}; + request.headers['x-preflight-location'] = [{value: 's3://image-bucket/path/to/correct/image.tif'}]; + request.headers['x-preflight-dimensions'] = [{value: JSON.stringify({ width: 640, height: 480 })}]; return request; } ```