mirror of https://github.com/kiwix/libkiwix.git
Fixed the size value used creating a response
In case of a partial response the size of the response is different from the served entry size.
This commit is contained in:
parent
0a30a77c08
commit
2a35a86de6
|
@ -241,7 +241,7 @@ Response::create_redirection_mhd_response() const
|
||||||
MHD_Response*
|
MHD_Response*
|
||||||
Response::create_entry_mhd_response() const
|
Response::create_entry_mhd_response() const
|
||||||
{
|
{
|
||||||
MHD_Response* response = MHD_create_response_from_callback(m_entry.getSize(),
|
MHD_Response* response = MHD_create_response_from_callback(m_lenRange,
|
||||||
16384,
|
16384,
|
||||||
callback_reader_from_entry,
|
callback_reader_from_entry,
|
||||||
new RunningResponse(m_entry, m_startRange),
|
new RunningResponse(m_entry, m_startRange),
|
||||||
|
|
Loading…
Reference in New Issue