]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/http.cpp
Fix wxHTTPStream::Eof() to return true for empty HTTP resources.
[wxWidgets.git] / src / common / http.cpp
index 82c5fc065b8a33e5fdbbd1591fe8f1807616ae41..873ac6db433e588ebccf2b181ca79d3940b144bb 100644 (file)
@@ -430,7 +430,7 @@ protected:
 
 size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize)
 {
 
 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;
     {
         m_lasterror = wxSTREAM_EOF;
         return 0;