Skip to content

Commit

Permalink
chore: refactor to clean up function signature with object parameteri…
Browse files Browse the repository at this point in the history
…sation
  • Loading branch information
orinokai committed Oct 15, 2024
1 parent 8634ea8 commit a60f6b9
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 95 deletions.
2 changes: 1 addition & 1 deletion src/run/handlers/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default async (request: Request, context: FutureContext) => {

await adjustDateHeader({ headers: response.headers, request, span, tracer, requestContext })

setCacheControlHeaders(response.headers, response.status, request, requestContext)
setCacheControlHeaders(response, request, requestContext)
setCacheTagsHeaders(response.headers, requestContext)
setVaryHeaders(response.headers, request, nextConfig)
setCacheStatusHeader(response.headers)
Expand Down
Loading

0 comments on commit a60f6b9

Please sign in to comment.