Kentaro Sekimoto / mbed-http

Fork of mbed-http by sandbox

Files at this revision

API Documentation at this revision

Comitter:
Jan Jongboom
Date:
Thu Feb 23 14:11:47 2017 +0100
Parent:
5:2456c90f02e9
Child:
7:2e3eedb9ca5c
Commit message:
Call is_body_complete() in HTTPS request as well

Changed in this revision

source/https_request.h Show annotated file Show diff for this revision Revisions of this file
--- 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;
             }
         }