fix: ServerConfig segv

This commit is contained in:
Talyx
2022-02-02 14:12:30 +03:00
parent 52b7e214cb
commit 842033b4bc
3 changed files with 35 additions and 25 deletions

View File

@@ -28,7 +28,7 @@ private:
int _clientBodySize;
std::map<int, std::string> _errorPages;
std::vector<location> _locations;
std::vector<location *> _locations;
public:
void setServerName(std::string);
@@ -36,14 +36,14 @@ public:
void setPort(int);
void setClientBodySize(int);
void setErrorPages(std::map<int, std::string>);
void setLocations(std::vector<location>);
void setLocations(std::vector<location *>);
void setRoot(TOMLMap *);
std::string getServerName(void);
std::string getHost(void);
int getPort(void);
int getClientBodySize(void);
std::vector<location> getLocations(void);
std::vector<location *> getLocations(void);
std::map<int, std::string> getErrorPages(void);
TOMLMap *getRoot(void);