mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-06-25 09:33:36 +02:00
「🔨」 fix: fixed issue with mainloop where it received empty request
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/30 09:40:16 by adjoly #+# #+# */
|
||||
/* Updated: 2025/05/27 22:32:40 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/05/28 10:00:45 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -34,6 +34,11 @@ Get::Get(std::string &data, config::Server *srv) {
|
||||
this->parse(data);
|
||||
}
|
||||
|
||||
Get::~Get(void) {
|
||||
// if (_url != not_nullptr)
|
||||
// delete _url;
|
||||
}
|
||||
|
||||
void Get::parse(std::string const &data) {
|
||||
std::istringstream stream(data);
|
||||
std::string line;
|
||||
@ -276,5 +281,6 @@ body {\n\
|
||||
http::Errors::getResponseBody(response.getStatusCode()));
|
||||
}
|
||||
|
||||
delete _url;
|
||||
return (response);
|
||||
}
|
||||
|
Reference in New Issue
Block a user