From 942312336301ea684c56ce3e89c9e701c055b229 Mon Sep 17 00:00:00 2001 From: adjoly Date: Sun, 4 May 2025 13:58:19 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20removed?= =?UTF-8?q?=20cookie=20toggle=20in=20config=20not=20usefull=20anymore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/config/Route.hpp | 6 +++--- src/config/Route.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/config/Route.hpp b/includes/config/Route.hpp index e397778..534e848 100644 --- a/includes/config/Route.hpp +++ b/includes/config/Route.hpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/19 14:59:41 by adjoly #+# #+# */ -/* Updated: 2025/04/30 15:45:59 by adjoly ### ########.fr */ +/* Updated: 2025/05/04 13:57:36 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -30,7 +30,7 @@ class Route { ~Route(void); bool getDirList(void) { return _dirlist; } - bool getCookies(void) { return _cookies; } + /* bool getCookies(void) { return _cookies; } */ bool getRedirect(void) { return _redirect; } int32_t getMaxBody(void) { return _max_body; } @@ -45,7 +45,7 @@ class Route { protected: private: bool _dirlist; - bool _cookies; + /* bool _cookies; */ bool _redirect; int32_t _max_body; diff --git a/src/config/Route.cpp b/src/config/Route.cpp index 8a88d0e..7dc7afe 100644 --- a/src/config/Route.cpp +++ b/src/config/Route.cpp @@ -81,11 +81,11 @@ Route::Route(toml::ANode *table) _dirlist = *static_cast(val); else _dirlist = true; - val = accessValue("cookies", toml::BOOL, _table, _log); - if (val != not_nullptr) - _cookies = *static_cast(val); - else - _cookies = false; + /* val = accessValue("cookies", toml::BOOL, _table, _log); */ + /* if (val != not_nullptr) */ + /* _cookies = *static_cast(val); */ + /* else */ + /* _cookies = false; */ val = accessValue("upload_path", toml::STRING, _table, _log); if (val != not_nullptr) _up_root = *static_cast(val);