summaryrefslogtreecommitdiff
path: root/src/webserver.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-06-16 21:05:31 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-06-16 21:05:31 +0200
commit2700d016843dddd53ff2a86fd39ce9aa2b7e5cd7 (patch)
treec1b5225198e45288d9e55646c9b9ea87467642df /src/webserver.c
parent608a68fba0caee7cb803c034957830d980a870c7 (diff)
downloadbiruda-2700d016843dddd53ff2a86fd39ce9aa2b7e5cd7.tar.gz
biruda-2700d016843dddd53ff2a86fd39ce9aa2b7e5cd7.tar.bz2
playing with embeddable web frontend
Diffstat (limited to 'src/webserver.c')
-rw-r--r--src/webserver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/webserver.c b/src/webserver.c
index 81ec523..947f90f 100644
--- a/src/webserver.c
+++ b/src/webserver.c
@@ -12,6 +12,9 @@
#include <microhttpd.h>
+/* embedded web pages and JS code */
+#include "index.h"
+
static struct MHD_Daemon *d;
#if MHD_VERSION < 0x00090500
@@ -100,7 +103,7 @@ static int handle_request( void *cls, struct MHD_Connection *connection,
}
} else {
- snprintf( biruda_msg, sizeof( biruda_msg ), "Welcome to biruda! Please state your wish..\n" );
+ snprintf( biruda_msg, index_html_len, (char *)index_html );
}
response = MHD_create_response_from_buffer( strlen( biruda_msg ),