Fork of SandBox's original mbed-http (https://os.mbed.com/teams/sandbox/code/mbed-http/) and update for MbedOS6+ Content of TESTS folder was replaced with basic examples form original SandBox's HelloWorld
Diff: source/http_request_builder.h
- Revision:
- 26:fe4e03a404fb
- Parent:
- 23:15fa2726f793
- Child:
- 29:383e9bfbfbed
- Child:
- 31:b3730a2c4f39
diff -r 47d5c90c9ceb -r fe4e03a404fb source/http_request_builder.h --- a/source/http_request_builder.h Thu Jan 11 14:34:33 2018 +0100 +++ b/source/http_request_builder.h Thu Jan 25 10:13:53 2018 +0200 @@ -87,9 +87,6 @@ if (!is_chunked) { // body size += body_size; - - // extra newline - size += 2; } // Now let's print it @@ -118,11 +115,6 @@ } req += body_size; - if (!is_chunked) { - sprintf(req, "\r\n"); - req += 2; - } - // Uncomment to debug... // printf("----- BEGIN REQUEST -----\n"); // printf("%s", originalReq);