Minor tweaks to support longer header key value pairs
Dependents: Car_Bon_car_module
Fork of HTTPClient by
Revision 25:19392aabd83d, committed 2014-03-16
- Comitter:
- ansond
- Date:
- Sun Mar 16 03:12:18 2014 +0000
- Parent:
- 24:07dc6a23ca28
- Commit message:
- updates
Changed in this revision
HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Sun Mar 16 03:11:53 2014 +0000 +++ b/HTTPClient.cpp Sun Mar 16 03:12:18 2014 +0000 @@ -390,7 +390,7 @@ } if(!foundCrlf) { //Try to read more if( trfLen < CHUNK_SIZE ) { - size_t newTrfLen; + size_t newTrfLen = 0; ret = recv(buf + trfLen, 0, CHUNK_SIZE - trfLen - 1, &newTrfLen); trfLen += newTrfLen; CHECK_CONN_ERR(ret);