「🔨」 fix: removed cookie toggle in config not usefull anymore

This commit is contained in:
KeyZox committed 2025-05-04 13:58:19 +02:00
1 parent 1537cf59ac
commit 9423123363
2 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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;
+5 -5
View File
@@ -81,11 +81,11 @@ Route::Route(toml::ANode *table)
_dirlist = *static_cast<bool *>(val);
else
_dirlist = true;
val = accessValue("cookies", toml::BOOL, _table, _log);
if (val != not_nullptr)
_cookies = *static_cast<bool *>(val);
else
_cookies = false;
/* val = accessValue("cookies", toml::BOOL, _table, _log); */
/* if (val != not_nullptr) */
/* _cookies = *static_cast<bool *>(val); */
/* else */
/* _cookies = false; */
val = accessValue("upload_path", toml::STRING, _table, _log);
if (val != not_nullptr)
_up_root = *static_cast<std::string *>(val);