Skip to content

Commit 8af4251

Browse files
authored
fix: invalid CGI test on 42 machines (#53)
www/upper.py / add execution permission www/upper.py / fix page title Makefile / set log level to critical on debug mode
1 parent 7760078 commit 8af4251

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
# By: josfelip <josfelip@student.42sp.org.br> +#+ +:+ +#+ #
77
# +#+#+#+#+#+ +#+ #
88
# Created: 2025/03/24 12:00:00 by josfelip #+# #+# #
9-
# Updated: 2025/03/26 11:44:35 by josfelip ### ########.fr #
9+
# Updated: 2025/08/21 11:18:43 by josfelip ### ########.fr #
1010
# #
1111
# **************************************************************************** #
1212

1313
NAME = webserv
1414

1515
# Compiler and flags
1616
CXX = c++
17-
CXXFLAGS = -Wall -Wextra -Werror -std=c++98
17+
CXXFLAGS = -Wall -Wextra -Werror -std=c++98
1818
DEPFLAGS = -MMD -MP
19-
DBGFLAGS = -g3
19+
DBGFLAGS = -g3 -D LOG_LEVEL=LOG_DEBUG
2020

2121
# Directories
2222
SRC_DIR = src

www/cgi.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>File Upload Test</title>
4+
<title>CGI Test</title>
55
<link rel="stylesheet" href="style.css" />
66
</head>
77
<body>
@@ -14,12 +14,12 @@
1414

1515
<h1>CGI Test</h1>
1616
<div class="upload-form">
17-
<h2>Send Some Data</h2>
17+
<h2>Upper Case Converter</h2>
1818
<form action="upper.py" method="post">
1919
<input type="text" id="data" name="data" placeholder="Enter some text">
2020
<br><br>
21-
<button type="submit">Send Data</button>
21+
<button type="submit">Convert</button>
2222
</form>
2323
</div>
2424
</body>
25-
</html>
25+
</html>

www/upper.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)