From a2c9f31e5856472c67279402c53f6db800aacd02 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Fri, 29 Jul 2022 10:43:11 +0200 Subject: [PATCH] small changes in cgi tests --- srcs/Webserv.cpp | 2 +- srcs/cgi-bin/php-cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/Webserv.cpp b/srcs/Webserv.cpp index fd5aee1..b359cad 100644 --- a/srcs/Webserv.cpp +++ b/srcs/Webserv.cpp @@ -223,7 +223,7 @@ void Webserv::_exec_cgi_script(int fd) env[4] = NULL; // save STDOUT save_stdout = dup(STDOUT_FILENO); - // inside chil process + // inside child process if (fork() == 0) { dup2(fd, STDOUT_FILENO); diff --git a/srcs/cgi-bin/php-cgi b/srcs/cgi-bin/php-cgi index 0a1cadb..7c58bf2 100755 --- a/srcs/cgi-bin/php-cgi +++ b/srcs/cgi-bin/php-cgi @@ -4,6 +4,6 @@ echo "BEGIN PHP-CGI\n-----------\n\n"; //phpinfo(); echo getenv('REQUEST_METHOD'); - //echo $_POST['REQUEST_METHOD']; + echo $_POST['REQUEST_METHOD']; echo "\n\n-----------\nEND PHP-CGI\n\n"; ?>