Skip to content

Commit

Permalink
renamed 👊🏿
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelSabia committed Dec 16, 2024
1 parent 600d6e9 commit fd7de74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/Config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Config
int getPort() const { return _port; }
std::string getRootDir() const { return _root_dir; }
FilePath getIndexFile() const { return *_index_file; }
unsigned int getMaxPackageSize() const { return _client_max_body_size; }
unsigned int getMaxPackageSize() const { return _max_package_size; }
std::map<int, FilePath> getErrorPages() const { return _error_pages; }
int getClientTimeout() const { return _client_timeout; }
std::vector<t_location> getLocations() const { return _locations; }
Expand Down
2 changes: 1 addition & 1 deletion src/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Config::Config(std::string data)
extractConfigFromBrackets(lines, static_cast<const std::string&>(data));

// 2. parse each line, based on starting keyword
std::array<std::string, CONFIG_KEYWORD_COUNT> keywords = {"listen", "server_name", "root", "index", "client_max_body_size", "error_page", "location", "client_timeout"};
std::array<std::string, CONFIG_KEYWORD_COUNT> keywords = {"listen", "server_name", "root", "index", "max_package_size", "error_page", "location", "client_timeout"};
std::array<void (Config::*)(const std::string&), CONFIG_KEYWORD_COUNT> parsers = {&Config::parseListen, &Config::parseServerName, &Config::parseRoot, &Config::parseIndex, &Config::parseMaxPackageSize, &Config::parseErrorPage, &Config::parseLocation, &Config::parseClientTimeout};
for (std::string &line : lines)
{
Expand Down

0 comments on commit fd7de74

Please sign in to comment.