Fixed the CI build failure under android_arm*

This commit is contained in:
Veloman Yunkan 2022-03-29 23:18:29 +04:00 committed by Matthieu Gautier
parent 545d409150
commit 2028bf3a98
1 changed files with 2 additions and 2 deletions

View File

@ -594,7 +594,7 @@ std::unique_ptr<Response> InternalServer::handle_search(const RequestContext& re
auto response = ContentResponse::build(*this, RESOURCE::templates::no_search_result_html, data, "text/html; charset=utf-8");
response->set_code(MHD_HTTP_NOT_FOUND);
response->set_taskbar(searchInfo.bookName, archive.get());
return response;
return std::move(response);
}
@ -624,7 +624,7 @@ std::unique_ptr<Response> InternalServer::handle_search(const RequestContext& re
renderer.setPageLength(pageLength);
auto response = ContentResponse::build(*this, renderer.getHtml(), "text/html; charset=utf-8");
response->set_taskbar(searchInfo.bookName, archive.get());
return response;
return std::move(response);
} catch (const std::invalid_argument& e) {
return HTTP400HtmlResponse(*this, request)
+ invalidUrlMsg