fix the problem http request with '\0' and fixx query string in url

Fork of mbed-http by sandbox

Revision:
6:112d72c60e07
Parent:
0:910f5949759f
Child:
7:2e3eedb9ca5c
--- a/source/https_request.h	Thu Feb 23 13:56:17 2017 +0100
+++ b/source/https_request.h	Thu Feb 23 14:11:47 2017 +0100
@@ -256,8 +256,8 @@
                 free(recv_buffer);
                 return NULL;
             }
-            // No more chunks? break out of this loop
-            if (_bpos < HTTP_RECEIVE_BUFFER_SIZE) {
+
+            if (_response->is_body_complete()) {
                 break;
             }
         }