mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 00:08:46 +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> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/03/19 14:59:41 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);
|
~Route(void);
|
||||||
|
|
||||||
bool getDirList(void) { return _dirlist; }
|
bool getDirList(void) { return _dirlist; }
|
||||||
bool getCookies(void) { return _cookies; }
|
/* bool getCookies(void) { return _cookies; } */
|
||||||
bool getRedirect(void) { return _redirect; }
|
bool getRedirect(void) { return _redirect; }
|
||||||
|
|
||||||
int32_t getMaxBody(void) { return _max_body; }
|
int32_t getMaxBody(void) { return _max_body; }
|
||||||
@ -45,7 +45,7 @@ class Route {
|
|||||||
protected:
|
protected:
|
||||||
private:
|
private:
|
||||||
bool _dirlist;
|
bool _dirlist;
|
||||||
bool _cookies;
|
/* bool _cookies; */
|
||||||
bool _redirect;
|
bool _redirect;
|
||||||
|
|
||||||
int32_t _max_body;
|
int32_t _max_body;
|
||||||
|
@ -81,11 +81,11 @@ Route::Route(toml::ANode *table)
|
|||||||
_dirlist = *static_cast<bool *>(val);
|
_dirlist = *static_cast<bool *>(val);
|
||||||
else
|
else
|
||||||
_dirlist = true;
|
_dirlist = true;
|
||||||
val = accessValue("cookies", toml::BOOL, _table, _log);
|
/* val = accessValue("cookies", toml::BOOL, _table, _log); */
|
||||||
if (val != not_nullptr)
|
/* if (val != not_nullptr) */
|
||||||
_cookies = *static_cast<bool *>(val);
|
/* _cookies = *static_cast<bool *>(val); */
|
||||||
else
|
/* else */
|
||||||
_cookies = false;
|
/* _cookies = false; */
|
||||||
val = accessValue("upload_path", toml::STRING, _table, _log);
|
val = accessValue("upload_path", toml::STRING, _table, _log);
|
||||||
if (val != not_nullptr)
|
if (val != not_nullptr)
|
||||||
_up_root = *static_cast<std::string *>(val);
|
_up_root = *static_cast<std::string *>(val);
|
||||||
|
Reference in New Issue
Block a user