Skip to content

Commit

Permalink
Use the chi get head middleware to route undefined HEAD requests to G…
Browse files Browse the repository at this point in the history
…ET requests
  • Loading branch information
MineGame159 committed Jun 4, 2024
1 parent a1c0ce4 commit a17dbd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func Main() {
r.Use(middleware.Logger)
}

r.Use(middleware.GetHead)
r.Use(cors.AllowAll().Handler)
r.Use(middleware.SetHeader("Connection", "close"))
r.Use(middleware.Recoverer)
Expand Down

0 comments on commit a17dbd4

Please sign in to comment.