Skip to content

Commit 6c28167

Browse files
committed
change to struct
1 parent fb216f0 commit 6c28167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/App/Middlewares/CustomHeaderMiddleware.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Vapor
22

3-
final class CustomHeaderMiddleware: AsyncMiddleware {
3+
struct CustomHeaderMiddleware: AsyncMiddleware {
44
func respond(to request: Vapor.Request, chainingTo next: any Vapor.AsyncResponder) async throws -> Vapor.Response {
55
let response = try await next.respond(to: request)
66
response.headers.add(name: "X-Frame-Options", value: "DENY")

0 commit comments

Comments
 (0)