Experimental HTTP and HTTPS library for mbed OS 5
Revision 26:fe4e03a404fb, committed 2018-01-25
- Comitter:
- Jan Jongboom
- Date:
- Thu Jan 25 10:13:53 2018 +0200
- Parent:
- 25:47d5c90c9ceb
- Child:
- 28:9a04ed79d67e
- Commit message:
- Do not add \r\n after request body. Landing patch from https://os.mbed.com/users/mpeylo/code/mbed-http/rev/6c9da880cccd/
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 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);