Skip to content

Commit

Permalink
Fix request/response function header documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Sep 18, 2023
1 parent 35e019a commit 63bf572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/advanced-usage/request-response-functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
```
Expand Down

0 comments on commit 63bf572

Please sign in to comment.