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; } ```