added HEAD Method to the handlers
Dieser Commit ist enthalten in:
Ursprung
07218169a6
Commit
8084ee4538
|
@ -68,8 +68,10 @@ func StaticFS(r gin.IRouter, files fs.FS) {
|
|||
h := makeHandler(files, fn.Name())
|
||||
if fn.Name() == "index.html" {
|
||||
r.GET("/", h)
|
||||
r.HEAD("/", h)
|
||||
}
|
||||
r.GET("/"+fn.Name(), h)
|
||||
r.HEAD("/"+fn.Name(), h)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Laden…
In neuem Issue referenzieren