mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-08 08:54:54 +07:00
Return 1 from the URI handler
This commit is contained in:
+2
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user