mirror of https://github.com/kiwix/libkiwix.git
Fix compilation on CI native dyn.
On the CI, the native_dyn docker image is setup with a packaged version on libmicrohttpd for which `MHD_HTTP_RANGE_NOT_SATISFIABLE` is not defined. When the CI will be fixed, we can revert this commit.
This commit is contained in:
parent
47436f7bdd
commit
ee17b0739a
|
@ -92,7 +92,9 @@ std::unique_ptr<Response> Response::build_404(const InternalServer& server, cons
|
|||
std::unique_ptr<Response> Response::build_416(const InternalServer& server, size_t resourceLength)
|
||||
{
|
||||
auto response = Response::build(server);
|
||||
response->set_code(MHD_HTTP_RANGE_NOT_SATISFIABLE);
|
||||
// [FIXME] (compile with recent enough version of libmicrohttpd)
|
||||
// response->set_code(MHD_HTTP_RANGE_NOT_SATISFIABLE);
|
||||
response->set_code(416);
|
||||
std::ostringstream oss;
|
||||
oss << "bytes */" << resourceLength;
|
||||
response->add_header(MHD_HTTP_HEADER_CONTENT_RANGE, oss.str());
|
||||
|
|
Loading…
Reference in New Issue