Skip to content

Commit

Permalink
Auto-disable CGI if socketpair is disabled
Browse files Browse the repository at this point in the history
h/t @danielinux, cesanta#652

PUBLISHED_FROM=68c9a86280d63d01b6e4cb72aa6cfd766e4d4be3
  • Loading branch information
Deomid Ryabkov authored and rojer committed Apr 26, 2016
1 parent dff844b commit 21665e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 21665e3

Please sign in to comment.