diff --git a/includes/requests/RequestImplement.hpp b/includes/requests/RequestImplement.hpp index e652224..8c84636 100644 --- a/includes/requests/RequestImplement.hpp +++ b/includes/requests/RequestImplement.hpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/30 09:30:15 by adjoly #+# #+# */ -/* Updated: 2025/05/28 11:29:38 by adjoly ### ########.fr */ +/* Updated: 2025/05/30 16:19:06 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -39,6 +39,7 @@ class Get : public ARequest { class Post : public ARequest { public: Post(std::string &data, config::Server *srv); + ~Post(void); void parse(std::string const &data); diff --git a/src/requests_handling/requestImplementation/Get.cpp b/src/requests_handling/requestImplementation/Get.cpp index 04629dd..d83af95 100644 --- a/src/requests_handling/requestImplementation/Get.cpp +++ b/src/requests_handling/requestImplementation/Get.cpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/30 09:40:16 by adjoly #+# #+# */ -/* Updated: 2025/05/29 11:44:03 by adjoly ### ########.fr */ +/* Updated: 2025/05/30 16:20:15 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/src/requests_handling/requestImplementation/Post.cpp b/src/requests_handling/requestImplementation/Post.cpp index bd33186..5696d1d 100644 --- a/src/requests_handling/requestImplementation/Post.cpp +++ b/src/requests_handling/requestImplementation/Post.cpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/30 09:50:20 by adjoly #+# #+# */ -/* Updated: 2025/05/29 12:06:54 by adjoly ### ########.fr */ +/* Updated: 2025/05/30 16:19:33 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -169,3 +169,8 @@ Response Post::execute(void) { } return (response); } + +Post::~Post(void) { + if (_url != not_nullptr) + delete _url; +}