Calvin Cheung
Committed by GitHub

Fixed the GetConnect bug

Add 'content-type' & 'content-length' into the headers when the content type is 'application/x-www-form-urlencoded'
@@ -113,6 +113,8 @@ class GetHttpClient { @@ -113,6 +113,8 @@ class GetHttpClient {
113 }); 113 });
114 var formData = parts.join('&'); 114 var formData = parts.join('&');
115 bodyBytes = utf8.encode(formData); 115 bodyBytes = utf8.encode(formData);
  116 + headers['content-length'] = bodyBytes.length.toString();
  117 + headers['content-type'] = contentType;
116 } else if (body is Map || body is List) { 118 } else if (body is Map || body is List) {
117 var jsonString = json.encode(body); 119 var jsonString = json.encode(body);
118 120