From d4aedf642052d82bb664e2e4a8c1be5d656174aa Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 16 Aug 2015 13:42:20 +0200 Subject: [PATCH] forward_body_data is required by CGI and file PUT --- src/civetweb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/civetweb.c b/src/civetweb.c index 8b316ef8..9a9b10e7 100755 --- a/src/civetweb.c +++ b/src/civetweb.c @@ -5932,7 +5932,7 @@ static int is_not_modified(const struct mg_connection *conn, } -#if !defined(NO_CGI) +#if !defined(NO_CGI) || !defined(NO_FILES) static int forward_body_data(struct mg_connection *conn, FILE *fp, SOCKET sock, SSL *ssl) { @@ -6022,8 +6022,9 @@ forward_body_data(struct mg_connection *conn, FILE *fp, SOCKET sock, SSL *ssl) return success; } +#endif - +#if !defined(NO_CGI) /* This structure helps to create an environment for the spawned CGI program. * Environment is an array of "VARIABLE=VALUE\0" ASCIIZ strings, * last element must be NULL.