Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-http by
Revision 22:6c9da880cccd, committed 2017-12-20
- Comitter:
- mpeylo
- Date:
- Wed Dec 20 14:25:11 2017 +0000
- Parent:
- 21:fcd2bfd31a39
- Commit message:
- removing superfluous \r\n after HTTP body
Changed in this revision
| source/http_request_builder.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/http_request_builder.h Thu Dec 14 16:19:22 2017 +0700
+++ b/source/http_request_builder.h Wed Dec 20 14:25:11 2017 +0000
@@ -85,9 +85,6 @@
// body
size += body_size;
- // extra newline
- size += 2;
-
// Now let's print it
char* req = (char*)calloc(size + 1, 1);
char* originalReq = req;
@@ -114,9 +111,6 @@
}
req += body_size;
- sprintf(req, "\r\n");
- req += 2;
-
// Uncomment to debug...
// printf("----- BEGIN REQUEST -----\n");
// printf("%s", originalReq);
