diff options
Diffstat (limited to 'upload.go')
| -rw-r--r-- | upload.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -12,7 +12,7 @@ import ( func uploadHandler(dir string, quiet bool) http.Handler { fn := func(w http.ResponseWriter, r *http.Request) { - // uhttpd strong + // µhttpd strong w.Header().Set("Server", "uhttpd") // we are handling the upload @@ -75,7 +75,10 @@ func uploadHandler(dir string, quiet bool) http.Handler { return } - err = tmpl.Execute(w, struct{ File string }{File: header.Filename}) + err = tmpl.Execute(w, struct { + File string + Favicon template.HTML + }{File: header.Filename, Favicon: getFavicon()}) if err != nil { log.Println(err.Error()) w.WriteHeader(500) @@ -96,7 +99,7 @@ func uploadHandler(dir string, quiet bool) http.Handler { return } - err = tmpl.Execute(w, nil) + err = tmpl.Execute(w, struct{ Favicon template.HTML }{Favicon: getFavicon()}) if err != nil { log.Println(err.Error()) w.WriteHeader(500) |
