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:7f45426cabb1, committed 2014-11-26
- Comitter:
- SomeRandomBloke
- Date:
- Wed Nov 26 14:01:28 2014 +0000
- Parent:
- 18:277279a1891e
- Commit message:
Changed in this revision
HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Wed May 07 16:48:10 2014 +0000 +++ b/HTTPClient.cpp Wed Nov 26 14:01:28 2014 +0000 @@ -24,7 +24,6 @@ #define DBG(x, ...) std::printf("[HTTPClient : DBG]"x"\r\n", ##__VA_ARGS__); #define WARN(x, ...) std::printf("[HTTPClient : WARN]"x"\r\n", ##__VA_ARGS__); #define ERR(x, ...) std::printf("[HTTPClient : ERR]"x"\r\n", ##__VA_ARGS__); - #else //Disable debug #define DBG(x, ...) @@ -365,13 +364,13 @@ buf[crlfPos] = '\0'; char key[32]; - char value[32]; + char value[64]; //key[31] = '\0'; //value[31] = '\0'; memset(key, 0, 32); - memset(value, 0, 32); + memset(value, 0, 64); //int n = sscanf(buf, "%31[^:]: %31[^\r\n]", key, value); @@ -388,7 +387,7 @@ char* valueStart = keyEnd + 2; if( (valueStart - buf) < crlfPos ) { - if(strlen(valueStart) < 32) + if(strlen(valueStart) < 64) { strcpy(value, valueStart); n++;