mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +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:
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user