mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-16 12:12:59 +08:00
Auto-disable CGI if socketpair is disabled
h/t @danielinux, cesanta/mongoose#652 PUBLISHED_FROM=68c9a86280d63d01b6e4cb72aa6cfd766e4d4be3
This commit is contained in:
parent
dff844b40a
commit
21665e367c
@ -4122,6 +4122,11 @@ int mg_normalize_uri_path(const struct mg_str *in, struct mg_str *out) {
|
||||
#define MG_WS_NO_HOST_HEADER_MAGIC ((char *) 0x1)
|
||||
#endif
|
||||
|
||||
/* CGI requires socketpair. */
|
||||
#if defined(MG_DISABLE_SOCKETPAIR) && !defined(MG_DISABLE_CGI)
|
||||
#define MG_DISABLE_CGI 1
|
||||
#endif
|
||||
|
||||
static const char *mg_version_header = "Mongoose/" MG_VERSION;
|
||||
|
||||
enum mg_http_proto_data_type { DATA_NONE, DATA_FILE, DATA_PUT };
|
||||
|
Loading…
x
Reference in New Issue
Block a user