Patrick Barrett / HTTPClient

Dependencies:   CyaSSL

Dependents:   exosite_http_example exosite_http_example

Fork of HTTPClient by wolf SSL

Revision:
31:612864287dd9
Parent:
16:1f743885e7de
Child:
32:7716672463b9
--- a/data/HTTPText.cpp	Fri Dec 05 07:03:47 2014 +0000
+++ b/data/HTTPText.cpp	Tue Jan 20 14:13:07 2015 +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/x-www-form-urlencoded; charset=utf-8", maxTypeLen-1);
   type[maxTypeLen-1] = '\0';
   return OK;
 }