mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
Fix file_body::get() not setting the more flag correctly
The check for more data actually checked if the end of data was reached so it was logically inverted. This fixes #434
This commit is contained in:
committed by
Vinnie Falco
parent
9af1b35252
commit
38c36ac655
@ -2,6 +2,7 @@ Version 51
|
|||||||
|
|
||||||
* Fix operator<< for header
|
* Fix operator<< for header
|
||||||
* Tidy up file_body
|
* Tidy up file_body
|
||||||
|
* Fix file_body::get() not setting the more flag correctly
|
||||||
|
|
||||||
API Changes:
|
API Changes:
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ struct file_body
|
|||||||
}
|
}
|
||||||
BOOST_ASSERT(nread != 0);
|
BOOST_ASSERT(nread != 0);
|
||||||
offset_ += nread;
|
offset_ += nread;
|
||||||
return {{const_buffers_type{buf_, nread}, offset_ >= size_}};
|
return {{const_buffers_type{buf_, nread}, offset_ < size_}};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user