diff --git a/core/http/request.cpp b/core/http/request.cpp index 49ed196..2ecda41 100644 --- a/core/http/request.cpp +++ b/core/http/request.cpp @@ -87,6 +87,8 @@ void Request::reset() { body.clear(); footer.clear(); compiled_body.clear(); + + data.clear(); } std::string Request::parser_get_path() { diff --git a/core/http/request.h b/core/http/request.h index 0572fbb..f48b194 100644 --- a/core/http/request.h +++ b/core/http/request.h @@ -3,6 +3,9 @@ #include #include +#include + +#include "core/object.h" #include "handler_instance.h" @@ -30,6 +33,8 @@ public: bool connection_closed; + std::map data; + virtual const std::string &get_cookie(const std::string &key); virtual void add_cookie(const ::Cookie &cookie); virtual void remove_cookie(const std::string &key);