🔨」 fix: fixed some things.

This commit is contained in:
adjoly
2025-06-23 21:23:37 +02:00
parent 5747579372
commit 457e05e8e5
6 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#!/nix/store/kjvgj2n3yn70hmjifg6y0bk9m4rf7jba-python3-3.12.10/bin/python3
#!/nix/store/8w718rm43x7z73xhw9d6vh8s4snrq67h-python3-3.12.10/bin/python3
import cgi
import cgitb

View File

@ -3,4 +3,6 @@ port = 5000
host = "0.0.0.0"
[server.location./]
root = "/home/adjoly/workspace/42/webserv/exemples/"
root = "/home/adjoly/workspace/42/webserv/exemples/webpage"
cgi = { ".py"}
methods = { "GET", "POST"}

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/30 09:40:16 by adjoly #+# #+# */
/* Updated: 2025/06/23 21:03:12 by adjoly ### ########.fr */
/* Updated: 2025/06/23 21:16:06 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -149,6 +149,7 @@ Response Get::execute(void) {
}
std::string str = static_cast<server::Cgi *>(_cgi)->str();
response = parseCgiOut(str);
std::cout << response.str();
response.setProtocol(_protocol);
server::PfdManager::remove(_cgi->getId());
server::ResourceManager::remove(_cgi->getId());

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/30 09:50:20 by adjoly #+# #+# */
/* Updated: 2025/05/30 16:19:33 by adjoly ### ########.fr */
/* Updated: 2025/06/23 21:21:10 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/17 11:12:41 by mmoussou #+# #+# */
/* Updated: 2025/06/23 21:03:10 by adjoly ### ########.fr */
/* Updated: 2025/06/23 21:14:20 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */