One more victory of HTTP404HtmlResponse

One more instance of `Response::build_404()` & `withTaskbarInfo()`
was taken over by `HTTP404HtmlResponse`.
This commit is contained in:
Veloman Yunkan 2022-03-24 19:27:40 +04:00 committed by Matthieu Gautier
parent 0ecbdbcf63
commit 0eb8f09f79
1 changed files with 3 additions and 3 deletions

View File

@ -416,9 +416,9 @@ std::unique_ptr<Response> InternalServer::handle_suggest(const RequestContext& r
}
if (archive == nullptr) {
const std::string error_details = noSuchBookErrorMsg(bookName);
auto response = Response::build_404(*this, "", error_details);
return withTaskbarInfo(bookName, nullptr, std::move(response));
return HTTP404HtmlResponse(*this, request)
+ noSuchBookErrorMsg(bookName)
+ TaskbarInfo(bookName);
}
const auto queryString = request.get_optional_param("term", std::string());