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.
Dependents: HTTPClient_IFTTT_Maker_post_HelloWorld
Fork of HTTPClient by
Revision 20:8164b7ad6115, committed 2015-07-13
- Comitter:
- jksoft
- Date:
- Mon Jul 13 14:03:40 2015 +0000
- Parent:
- 19:a0d9edb403e5
- Commit message:
- HTTPText.cpp?getDataType()? text/plain ? application/json ???
Changed in this revision
| data/HTTPText.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/data/HTTPText.cpp Fri Mar 20 14:17:14 2015 +0000
+++ b/data/HTTPText.cpp Mon Jul 13 14:03:40 2015 +0000
@@ -55,7 +55,11 @@
/*virtual*/ int HTTPText::getDataType(char* type, size_t maxTypeLen) //Internet media type for Content-Type header
{
+#if 1
+ strncpy(type, "application/json", maxTypeLen-1);
+#else
strncpy(type, "text/plain", maxTypeLen-1);
+#endif
type[maxTypeLen-1] = '\0';
return OK;
}
