mirror of https://github.com/kiwix/libkiwix.git
One more victory of HTTP404HtmlResponse
One more instance of `Response::build_404()` & `withTaskbarInfo()` was taken over by `HTTP404HtmlResponse`.
This commit is contained in:
parent
0ecbdbcf63
commit
0eb8f09f79
|
@ -416,9 +416,9 @@ std::unique_ptr<Response> InternalServer::handle_suggest(const RequestContext& r
|
||||||
}
|
}
|
||||||
|
|
||||||
if (archive == nullptr) {
|
if (archive == nullptr) {
|
||||||
const std::string error_details = noSuchBookErrorMsg(bookName);
|
return HTTP404HtmlResponse(*this, request)
|
||||||
auto response = Response::build_404(*this, "", error_details);
|
+ noSuchBookErrorMsg(bookName)
|
||||||
return withTaskbarInfo(bookName, nullptr, std::move(response));
|
+ TaskbarInfo(bookName);
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto queryString = request.get_optional_param("term", std::string());
|
const auto queryString = request.get_optional_param("term", std::string());
|
||||||
|
|
Loading…
Reference in New Issue