mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
add: client body limit in locations
This commit is contained in:
@@ -15,6 +15,7 @@ struct location
|
||||
std::vector<std::string> methods;
|
||||
std::map<int, std::string> redirect;
|
||||
std::string cgi_pass;
|
||||
unsigned int clientBodySize;
|
||||
};
|
||||
|
||||
struct serverListen
|
||||
@@ -37,6 +38,7 @@ private:
|
||||
std::map<int, std::string> _errorPages;
|
||||
std::vector<location *> _locations;
|
||||
|
||||
void resetLocation(location *);
|
||||
public:
|
||||
void setServerName(std::string);
|
||||
void setHost(std::string);
|
||||
|
||||
Reference in New Issue
Block a user