Commit 3aaf47d4 authored by Sergey Lyubka's avatar Sergey Lyubka

Return 1 from the URI handler

parent 346179d1
......@@ -4,10 +4,8 @@
// This function will be called by mongoose on every new request
static int index_html(struct mg_connection *conn) {
mg_printf_data(conn, "Hello! Requested URI is [%s], query string is [%s]",
conn->uri,
conn->query_string == NULL ? "(none)" : conn->query_string);
return 0;
mg_printf_data(conn, "Hello! Requested URI is [%s]", conn->uri);
return 1;
}
int main(void) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment