mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 00:28:45 +02:00
「🔨」 fix: removed cookie toggle in config not usefull anymore
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user