From 3aaf47d4e4f9b920cff098a039d057ab76019302 Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Tue, 14 Jan 2014 12:50:13 +0000
Subject: [PATCH] Return 1 from the URI handler

---
 examples/hello.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/examples/hello.c b/examples/hello.c
index c4fca13cf..3481af5b7 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) {
-- 
GitLab