platform/shared/rubyJVM/src/com/rho/net/NetRequest.java in rhodes-2.0.0.beta10 vs platform/shared/rubyJVM/src/com/rho/net/NetRequest.java in rhodes-2.0.0.beta11
- old
+ new
@@ -554,10 +554,10 @@
m_nCurDownloadSize += nRead;
}
}while( !m_bCancel && nRead >= 0 );
- if ( code == IHttpConnection.HTTP_PARTIAL_CONTENT && isFinishDownload() )
+ if ( code == IHttpConnection.HTTP_OK || (code == IHttpConnection.HTTP_PARTIAL_CONTENT && isFinishDownload()) )
m_nCurDownloadSize = 0;
}
}
}finally