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 HTTPClient by
Revision 19:bc765a7fd8f2, committed 2015-07-26
- Comitter:
- ollie8
- Date:
- Sun Jul 26 09:02:21 2015 +0000
- Parent:
- 18:1448391bbc51
- Commit message:
- Fixed bug in file write method
Changed in this revision
HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
data/HTTPFile.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Tue Dec 31 11:06:57 2013 +0000 +++ b/HTTPClient.cpp Sun Jul 26 09:02:21 2015 +0000 @@ -18,7 +18,7 @@ */ //Debug is disabled by default -#if 0 +#if 1 //Enable debug #include <cstdio> #define DBG(x, ...) std::printf("[HTTPClient : DBG]"x"\r\n", ##__VA_ARGS__);
--- a/data/HTTPFile.cpp Tue Dec 31 11:06:57 2013 +0000 +++ b/data/HTTPFile.cpp Sun Jul 26 09:02:21 2015 +0000 @@ -18,7 +18,7 @@ int HTTPFile::write(const char* buf, size_t len) { if (file) { - len = fwrite(&buf, 1, len, file); + len = fwrite(buf, 1, len, file); if ((!m_chunked && (ftell(file) >= m_len)) || (m_chunked && !len)) { close(); }