Renamed a variable

This commit is contained in:
Veloman Yunkan 2022-01-22 18:13:34 +04:00 committed by Matthieu Gautier
parent ca965d448f
commit 26c16bb1b2
1 changed files with 4 additions and 4 deletions

View File

@ -86,13 +86,13 @@ std::unique_ptr<Response> Response::build_304(const InternalServer& server, cons
std::unique_ptr<ContentResponse> Response::build_404(const InternalServer& server, const std::string& url, const std::string& details) std::unique_ptr<ContentResponse> Response::build_404(const InternalServer& server, const std::string& url, const std::string& details)
{ {
MustacheData results; MustacheData data;
if ( !url.empty() ) { if ( !url.empty() ) {
results.set("url", url); data.set("url", url);
} }
results.set("details", details); data.set("details", details);
auto response = ContentResponse::build(server, RESOURCE::templates::_404_html, results, "text/html"); auto response = ContentResponse::build(server, RESOURCE::templates::_404_html, data, "text/html");
response->set_code(MHD_HTTP_NOT_FOUND); response->set_code(MHD_HTTP_NOT_FOUND);
return response; return response;