summaryrefslogtreecommitdiff
path: root/upload.go
diff options
context:
space:
mode:
Diffstat (limited to 'upload.go')
-rw-r--r--upload.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/upload.go b/upload.go
index 6e0ce56..daefd47 100644
--- a/upload.go
+++ b/upload.go
@@ -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)