Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/httpserver/http_response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class http_response
* Method used to get the content from the response.
* @return the content in string form
**/
const std::string get_content()
std::string get_content()
{
return this->content;
}
Expand All @@ -125,7 +125,7 @@ class http_response
* @param key The header identification
* @return a string representing the value assumed by the header
**/
const std::string get_header(const std::string& key)
std::string get_header(const std::string& key)
{
return this->headers[key];
}
Expand All @@ -140,7 +140,7 @@ class http_response
* @param key The footer identification
* @return a string representing the value assumed by the footer
**/
const std::string get_footer(const std::string& key)
std::string get_footer(const std::string& key)
{
return this->footers[key];
}
Expand All @@ -150,7 +150,7 @@ class http_response
result = this->footers[key];
}

const std::string get_cookie(const std::string& key)
std::string get_cookie(const std::string& key)
{
return this->cookies[key];
}
Expand Down Expand Up @@ -189,7 +189,7 @@ class http_response
return this->response_code;
}

const std::string get_realm() const
std::string get_realm() const
{
return this->realm;
}
Expand All @@ -199,7 +199,7 @@ class http_response
result = this->realm;
}

const std::string get_opaque() const
std::string get_opaque() const
{
return this->opaque;
}
Expand All @@ -209,7 +209,7 @@ class http_response
result = this->opaque;
}

const bool need_nonce_reload() const
bool need_nonce_reload() const
{
return this->reload_nonce;
}
Expand Down
2 changes: 1 addition & 1 deletion src/httpserver/http_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ struct ip_representation
ip_representation(const struct sockaddr* ip);

bool operator <(const ip_representation& b) const;
const int weight() const
int weight() const
{
//variable-precision SWAR algorithm
unsigned int x = mask;
Expand Down
8 changes: 4 additions & 4 deletions src/httpserver/webserver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,22 +145,22 @@ class webserver
bool is_valid(const std::string& key);
void clean_cache();

const log_access_ptr get_access_logger() const
log_access_ptr get_access_logger() const
{
return this->log_access;
}

const log_error_ptr get_error_logger() const
log_error_ptr get_error_logger() const
{
return this->log_error;
}

const validator_ptr get_request_validator() const
validator_ptr get_request_validator() const
{
return this->validator;
}

const unescaper_ptr get_unescaper() const
unescaper_ptr get_unescaper() const
{
return this->unescaper;
}
Expand Down