mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +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
|
||||
* Tidy up file_body
|
||||
* Fix file_body::get() not setting the more flag correctly
|
||||
|
||||
API Changes:
|
||||
|
||||
|
@ -88,7 +88,7 @@ struct file_body
|
||||
}
|
||||
BOOST_ASSERT(nread != 0);
|
||||
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