This library is used to make HTTP and HTTPS calls from mbed OS 5 applications.
Fork of mbed-http by
Diff: source/https_request.h
- Revision:
- 10:b017c7d2cf23
- Parent:
- 7:2e3eedb9ca5c
- Child:
- 11:96e4dcb9c0c2
--- a/source/https_request.h Thu Mar 02 13:14:36 2017 +0100 +++ b/source/https_request.h Tue Mar 28 13:33:14 2017 +0200 @@ -196,8 +196,8 @@ return NULL; } - char* request = _request_builder->build(body, body_size); - size_t request_size = strlen(request); + size_t request_size = 0; + char* request = _request_builder->build(body, body_size, request_size); ret = mbedtls_ssl_write(&_ssl, (const unsigned char *) request, request_size);