diff --git a/examples/hello.c b/examples/hello.c index c4fca13cff263740f13822ede10e1bd1b4fcb9ac..3481af5b7e777e82960d1b6318e99e559a9fca55 100644 --- a/examples/hello.c +++ b/examples/hello.c @@ -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) {