mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 19:48:47 +02:00
「🔨」 fix: fixed config and remove default config table
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/14 12:20:06 by adjoly #+# #+# */
|
||||
/* Updated: 2025/05/01 15:29:53 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/05/03 09:42:35 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -28,8 +28,6 @@ class Config {
|
||||
|
||||
Logger *getLogger(void) { return _log; }
|
||||
|
||||
Server *getDefaultServer(void) const { return _default; }
|
||||
|
||||
std::vector<Server *> getServers(void) { return _servers; }
|
||||
Server *getServer(size_t i) {
|
||||
try {
|
||||
@ -42,7 +40,6 @@ class Config {
|
||||
|
||||
private:
|
||||
std::vector<Server *> _servers;
|
||||
Server *_default;
|
||||
};
|
||||
|
||||
}; // namespace config
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/19 14:11:28 by adjoly #+# #+# */
|
||||
/* Updated: 2025/05/01 15:32:31 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/05/03 09:42:27 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -83,8 +83,6 @@ class Server {
|
||||
|
||||
std::map<int, std::string> *
|
||||
_parseErrPages(std::map<std::string, toml::ANode *> *table);
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // namespace config
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/30 09:30:15 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/30 09:34:17 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/05/03 12:07:57 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -32,6 +32,10 @@ class Post : public ARequest {
|
||||
|
||||
void parse(std::string const &data);
|
||||
|
||||
std::string extractFilename(const std::string &header);
|
||||
void handleMultipartData(const std::string &body,
|
||||
const std::string &boundary);
|
||||
|
||||
Response execute(void);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user