Guarded on_cgi_data() call by ifdef, thanks to Pavel Pimenov

This commit is contained in:
Sergey Lyubka committed 2014-02-20 12:33:46 +00:00
1 parent 8865dd5e84
commit f64ebbe0b1
1 file changed
+2
+2
View File
@@ -4533,8 +4533,10 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
case NS_RECV:
if (nc->flags & NSF_ACCEPTED) {
process_request(conn);
#ifndef MONGOOSE_NO_CGI
} else if (nc->flags & MG_CGI_CONN) {
on_cgi_data(nc);
#endif
} else {
process_response(conn);
}