AerCloud / HTTPClient_AerCloud

Dependents:   AerCloud_C027_Sample

Fork of HTTPClient by Donatien Garnier

Revision:
19:c96ef4c9695c
Parent:
16:1f743885e7de
--- a/data/HTTPText.cpp	Wed May 07 16:48:10 2014 +0000
+++ b/data/HTTPText.cpp	Mon Nov 10 22:42:11 2014 +0000
@@ -55,7 +55,8 @@
 
 /*virtual*/ int HTTPText::getDataType(char* type, size_t maxTypeLen) //Internet media type for Content-Type header
 {
-  strncpy(type, "text/plain", maxTypeLen-1);
+//  strncpy(type, "text/plain", maxTypeLen-1);
+  strncpy(type, "application/json", maxTypeLen-1);
   type[maxTypeLen-1] = '\0';
   return OK;
 }