mirror of https://github.com/kiwix/libkiwix.git
Fixed the CI build failure under android_arm*
This commit is contained in:
parent
545d409150
commit
2028bf3a98
|
@ -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");
|
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_code(MHD_HTTP_NOT_FOUND);
|
||||||
response->set_taskbar(searchInfo.bookName, archive.get());
|
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);
|
renderer.setPageLength(pageLength);
|
||||||
auto response = ContentResponse::build(*this, renderer.getHtml(), "text/html; charset=utf-8");
|
auto response = ContentResponse::build(*this, renderer.getHtml(), "text/html; charset=utf-8");
|
||||||
response->set_taskbar(searchInfo.bookName, archive.get());
|
response->set_taskbar(searchInfo.bookName, archive.get());
|
||||||
return response;
|
return std::move(response);
|
||||||
} catch (const std::invalid_argument& e) {
|
} catch (const std::invalid_argument& e) {
|
||||||
return HTTP400HtmlResponse(*this, request)
|
return HTTP400HtmlResponse(*this, request)
|
||||||
+ invalidUrlMsg
|
+ invalidUrlMsg
|
||||||
|
|
Loading…
Reference in New Issue