mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-29 12:41:03 +00:00
Guarded on_cgi_data() call by ifdef, thanks to Pavel Pimenov
This commit is contained in:
1 parent
8865dd5e84
commit
f64ebbe0b1
1 file changed
+2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user