diff options
| author | Horus3 | 2015-06-15 15:00:21 +0200 |
|---|---|---|
| committer | Horus3 | 2015-06-15 15:00:21 +0200 |
| commit | dd4baa267dbdfe279aab5f4122305ac51c0c6a3d (patch) | |
| tree | 3704ecc1d709e0613d972d778b7b9ee046f96e1c /intercept.go | |
| parent | ffdfbb70cf2af25482b56f08e8cad53104d91e61 (diff) | |
| download | uhttpd-dd4baa267dbdfe279aab5f4122305ac51c0c6a3d.tar.gz | |
Fix css and some bugs.
Diffstat (limited to 'intercept.go')
| -rw-r--r-- | intercept.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intercept.go b/intercept.go index 8201f3e..eeea651 100644 --- a/intercept.go +++ b/intercept.go @@ -54,7 +54,10 @@ func (t *TemplateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - err = tmpl.Execute(w, struct{ URL string }{URL: r.URL.Path}) + err = tmpl.Execute(w, struct { + URL string + Favicon template.HTML + }{URL: r.URL.Path, Favicon: getFavicon()}) if err != nil { log.Println(err.Error()) w.WriteHeader(500) |
