From c02234c5843c8d2584777d3e97f83403971d3276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 26 Jul 2009 15:27:31 +0000 Subject: [PATCH] Add /favicon.ico --- src/webui/static/htslogo.png | Bin 0 -> 321 bytes src/webui/webui.c | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/webui/static/htslogo.png diff --git a/src/webui/static/htslogo.png b/src/webui/static/htslogo.png new file mode 100644 index 0000000000000000000000000000000000000000..4a607a9bd5394f12266e509e288c53c8b36c9f33 GIT binary patch literal 321 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgfvHf|wBBSWE5JD`wciEBiObAE1a zYF-J0b5UwyNotBhd1gt5g1e`0KzJjcI8f0XPZ!4!i_>!_ZR9!g%gijlfI34O&4biW#S{sU>W(`(C!`UFpX? z&C^~meES1bd|)rjw77?J1SNtEuHUlRWtyxV#Z|}c@<2U5^+l}M+Z%GA0AlcT^>bP0 Hl+XkK?}~Hv literal 0 HcmV?d00001 diff --git a/src/webui/webui.c b/src/webui/webui.c index f7188866..c4c94a34 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -254,6 +254,19 @@ webui_static_content(const char *content_path, const char *http_path, "No source path providing HTTP content: %s", http_path); } + +/** + * + */ +static int +favicon(http_connection_t *hc, const char *remain, void *opaque) +{ + http_redirect(hc, "static/htslogo.png"); + return 0; +} + + + /** * WEB user interface */ @@ -263,6 +276,7 @@ webui_init(const char *contentpath) http_path_add("/", NULL, page_root, ACCESS_WEB_INTERFACE); http_path_add("/dvrfile", NULL, page_dvrfile, ACCESS_WEB_INTERFACE); + http_path_add("/favicon.ico", NULL, favicon, ACCESS_WEB_INTERFACE); webui_static_content(contentpath, "/static", "src/webui/static"); webui_static_content(contentpath, "/docs", "docs/html");