]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxHTTPStream::Eof() to return true for empty HTTP resources.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 01:00:03 +0000 (01:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 01:00:03 +0000 (01:00 +0000)
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

src/common/http.cpp

index 82c5fc065b8a33e5fdbbd1591fe8f1807616ae41..873ac6db433e588ebccf2b181ca79d3940b144bb 100644 (file)
@@ -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;