Commit f64ebbe0 authored by Sergey Lyubka's avatar Sergey Lyubka

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

parent 8865dd5e
...@@ -4533,8 +4533,10 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) { ...@@ -4533,8 +4533,10 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
case NS_RECV: case NS_RECV:
if (nc->flags & NSF_ACCEPTED) { if (nc->flags & NSF_ACCEPTED) {
process_request(conn); process_request(conn);
#ifndef MONGOOSE_NO_CGI
} else if (nc->flags & MG_CGI_CONN) { } else if (nc->flags & MG_CGI_CONN) {
on_cgi_data(nc); on_cgi_data(nc);
#endif
} else { } else {
process_response(conn); process_response(conn);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment