Fix wxHTTPStream::Eof() to return true for empty HTTP resources.
Eof() never returned true when attempting to read an empty resource before. Closes #11596. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9677a8f017
commit
330ca4d434
@ -430,7 +430,7 @@ protected:
|
||||
|
||||
size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize)
|
||||
{
|
||||
if (m_httpsize > 0 && m_read_bytes >= m_httpsize)
|
||||
if (m_httpsize >= 0 && m_read_bytes >= m_httpsize)
|
||||
{
|
||||
m_lasterror = wxSTREAM_EOF;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user