Skip to content

Commit 95058d2

Browse files
committed
clean
1 parent 49325dc commit 95058d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

functions/_middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const staticHandler: PagesFunction = async ({ request, next, env }) => {
5252
return next()
5353
}
5454

55-
const firefoxRewrite: PagesFunction = async ({ request, next }) => {
55+
const cspRewrite: PagesFunction = async ({ request, next }) => {
5656
const userAgent = request.headers.get('user-agent')?.toLowerCase()
5757
const response = await next()
5858

@@ -172,4 +172,4 @@ const pathRewriter: PagesFunction = async ({ request, next }) => {
172172
return next()
173173
}
174174

175-
export const onRequest = [staticHandler, firefoxRewrite, pathRewriter]
175+
export const onRequest = [staticHandler, cspRewrite, pathRewriter]

0 commit comments

Comments
 (0)