small changes in cgi tests

This commit is contained in:
hugogogo
2022-07-29 10:43:11 +02:00
parent e6ec3fe97b
commit a2c9f31e58
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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";
?>