From 18b83fb68464e82ffb253e5bd433dc0c6ea09ae0 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 12 Jun 2018 21:21:29 +0200 Subject: [PATCH] CGI size --- src/client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index fc52ca4..35a4478 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -270,10 +270,11 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col stds pipes = procopen(cmd.c_str()); childpid = pipes.pid; - if (req.getMethod() == "POST" || req.getMethod() == "PUT") { + //if (req.getMethod() == "POST" || req.getMethod() == "PUT") { long len = req.isExistingField("Content-Length") ? strtol(req.getField("Content-Length").c_str(), nullptr, 10) : -1; + log(prefix, to_string(len)); socket->receive(pipes.stdin, len); - } + //} fclose(pipes.stdin); thread *t = new thread(php_error_handler, prefix, pipes.stderr);