Hi,
I need to implement the functionality from the (obsolete)
mg_add_uri_handler, so some URIs I want to process myself, while others I
want to pass to the file server. I thought that something like this should
work:
static int handler(struct mg_connection *conn)
{
if (conn->uri == "/test") {
mg_printf_data(conn, "URI: %s", conn->uri);
return MG_REQUEST_PROCESSED;
}
return MG_REQUEST_NOT_PROCESSED;
}
But when I return MG_REQUEST_NOT_PROCESSED, mongoose closes the TCP
connection without passing the request to the file and directory server.
What is wrong here.
Thanks,
Stefan
--
You received this message because you are subscribed to the Google Groups
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.