Skip to content

Commit a60f6b9

Browse files
committed
chore: refactor to clean up function signature with object parameterisation
1 parent 8634ea8 commit a60f6b9

File tree

3 files changed

+93
-95
lines changed

3 files changed

+93
-95
lines changed

src/run/handlers/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default async (request: Request, context: FutureContext) => {
112112

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

115-
setCacheControlHeaders(response.headers, response.status, request, requestContext)
115+
setCacheControlHeaders(response, request, requestContext)
116116
setCacheTagsHeaders(response.headers, requestContext)
117117
setVaryHeaders(response.headers, request, nextConfig)
118118
setCacheStatusHeader(response.headers)

0 commit comments

Comments
 (0)