diff -ru --strip-trailing-cr BitcasaDLL-20131230/BitcasaDLL/http_client.cpp BitcasaDLL-20131231/BitcasaDLL/http_client.cpp
--- BitcasaDLL-20131230/BitcasaDLL/http_client.cpp	2013-12-31 11:19:02.000000000 +0900
+++ BitcasaDLL-20131231/BitcasaDLL/http_client.cpp	2013-12-31 19:20:28.000000000 +0900
@@ -168,7 +168,10 @@
 			buffer.resize(4096);
 			while ((ContentLength < 0) || (len >= ContentLength)){
 				int p = BIO_read(bio, &buffer[0], (int)buffer.size());
-				if (p <= 0) break;
+				if (p <= 0){
+					response.body.resize(0);
+					break;
+				}
 				response.body.resize(len + p);
 				memcpy(&buffer[0], &response.body[len], p);
 				len += p;
@@ -177,7 +180,7 @@
 		else {
 			int p = BIO_read(bio, &response.body[0], (int)response.body.size());
 			if (p <= 0) {
-				response.body[0] = 0;
+				response.body.resize(0);
 			}
 		}
 		return 0;
Only in BitcasaDLL-20131231/ssl: static_lib
