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: kintone-POST kintone-POST
Fork of HTTPClient by
Revision 34:ce9d3c551150, committed 2017-08-23
- Comitter:
- takeuchiyoshihiko
- Date:
- Wed Aug 23 09:30:54 2017 +0000
- Parent:
- 25:531f03a263a9
- Commit message:
- for CyaSSL
Changed in this revision
| data/HTTPText.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/data/HTTPText.cpp	Sat Jul 12 12:09:38 2014 +0000
+++ b/data/HTTPText.cpp	Wed Aug 23 09:30:54 2017 +0000
@@ -55,7 +55,7 @@
 
 /*virtual*/ int HTTPText::getDataType(char* type, size_t maxTypeLen) //Internet media type for Content-Type header
 {
-  strncpy(type, "text/plain", maxTypeLen-1);
+  strncpy(type, "application/json", maxTypeLen-1);
   type[maxTypeLen-1] = '\0';
   return OK;
 }
    