mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fix header client. Simplify code.
This commit is contained in:
parent
8f87273837
commit
0c2768b711
6 changed files with 9 additions and 18 deletions
|
|
@ -147,7 +147,7 @@ func (c *controller) failed(rw http.ResponseWriter, tmpl string, err error) {
|
|||
}
|
||||
|
||||
// index calls the "render" function and passes the "index.html" and c.cfg to it.
|
||||
func (c *controller) index(rw http.ResponseWriter, r *http.Request) {
|
||||
func (c *controller) index(rw http.ResponseWriter, _ *http.Request) {
|
||||
c.render(rw, "index.html", map[string]any{
|
||||
"Config": c.cfg,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue