diff options
| author | horus_arch | 2015-06-15 13:38:47 +0200 |
|---|---|---|
| committer | horus_arch | 2015-06-15 13:38:47 +0200 |
| commit | c79e605b60040c4c0e5c792fa447487c2b8ae246 (patch) | |
| tree | d20c97b59c6252e555618a128ea63f6fa9d016d9 /upload.go | |
| parent | 3a09b2509102d58fe4e52a9a8fa699f6b42dc327 (diff) | |
| download | uhttpd-c79e605b60040c4c0e5c792fa447487c2b8ae246.tar.gz | |
Use flex to extract html. Icono-font used for icons.
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) |
