From 7ea43723e178f25cfc10854d2a5a0cb5980586f4 Mon Sep 17 00:00:00 2001 From: adjoly Date: Mon, 9 Jun 2025 18:43:51 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20sample=20conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample.toml | 2 +- src/help.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sample.toml b/sample.toml index 7bc0cde..f082b19 100644 --- a/sample.toml +++ b/sample.toml @@ -1,5 +1,5 @@ [server] host = "0.0.0.0" -port = 8080 +port = 80 [server.location./] diff --git a/src/help.cpp b/src/help.cpp index 38f3efc..ee602d4 100644 --- a/src/help.cpp +++ b/src/help.cpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/10 13:08:36 by adjoly #+# #+# */ -/* Updated: 2025/05/08 11:58:13 by adjoly ### ########.fr */ +/* Updated: 2025/06/09 18:43:18 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -40,7 +40,7 @@ void _generateConf(const std::string path) { std::ofstream file(path.c_str()); if (file.is_open()) { file << "[server]\nhost = \"0.0.0.0\"\nport = " - "80\n\n[server.location./]\n"; + "80\n\n[server.location./]\nmethods = { \"GET\" }\n"; file.close(); _log.info("config file successfully generated"); } else {