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.
Diff: source/http_response_parser.h
- Revision:
- 3:8a6b003e3874
- Parent:
- 0:910f5949759f
- Child:
- 4:539df159e058
diff -r 959baaa89148 -r 8a6b003e3874 source/http_response_parser.h
--- a/source/http_response_parser.h Thu Feb 16 13:55:05 2017 +0100
+++ b/source/http_response_parser.h Thu Feb 23 13:28:07 2017 +0100
@@ -90,11 +90,14 @@
return 0;
}
- static int on_headers_complete(http_parser* parser) {
+ int on_headers_complete(http_parser* parser) {
+ response->set_headers_complete();
return 0;
}
int on_body(http_parser* parser, const char *at, size_t length) {
+ response->increase_body_length(length);
+
if (body_callback) {
body_callback(at, length);
return 0;