Fork HTTPClient and Modfiy code for mbed 6.0

Dependents:   mbed-demo-http-get-json

Revision:
35:d9e2d1c96b75
Parent:
34:3556275bebf3
Child:
46:ac12edc84261
--- a/data/HTTPFile.cpp	Sun Mar 08 17:50:52 2015 +0000
+++ b/data/HTTPFile.cpp	Thu Aug 06 11:11:31 2015 +0000
@@ -41,7 +41,7 @@
     if (file) {
         written = fwrite(buf, 1, len, file);   
         INFO("  writ:%d, ftell: %d", written, ftell(file)); 
-        if ((!m_chunked && (ftell(file) >= m_len)) || (m_chunked && !written)) {
+        if ((!m_chunked && ((size_t)ftell(file) >= m_len)) || (m_chunked && !written)) {
             INFO("closing");
             close();
         }