diff options
| author | horus_arch | 2015-06-15 17:07:43 +0200 |
|---|---|---|
| committer | horus_arch | 2015-06-15 17:07:43 +0200 |
| commit | 1276eba6a546b61b8396e838e3043f2e609ce7d4 (patch) | |
| tree | 555fc6aa9ef45bc43cbde7c2ff1ac02c7c62e7b2 /intercept.go | |
| parent | e205935a4fd7ae56a352d5dd8d1b69f143afb09c (diff) | |
| parent | dd4baa267dbdfe279aab5f4122305ac51c0c6a3d (diff) | |
| download | uhttpd-1276eba6a546b61b8396e838e3043f2e609ce7d4.tar.gz | |
Merge branch 'master' of git.iamfabulous.de:uhttpd
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) |
