add: client body limit in locations

This commit is contained in:
Talyx
2022-02-10 19:28:20 +03:00
parent 586ada6f15
commit abff8b474f
2 changed files with 22 additions and 0 deletions

View File

@@ -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);