title: 400 Error when using URI parsing API request after switching to http: 0.12.0 from http: ^0.13.0 in Flutter
body: <p>I am making a post request in flutter but, I cannot make the request. Each time I attempt to upload my data, I get back a 400 error. This was working previously until the recent flutter http: ^0.13.0 update
  . Prior to that I used http: ^0.12.0. After the change I can no longer make the call, even after changing the html parser to URI. This is my code:</p>
  <pre><code>  Map&lt;String, dynamic&gt; _body = {
      'access_token': token,
      'address': '${_ratingsCapsule[0]['address']}',
      'prefered_strain_type': '${_ratingsCapsule[1]['prefered_strain_type']}',
      'phone': &quot;${_ratingsCapsule[0]['phone']}&quot;,
      'wants_to_feel': _ratingsCapsule[1]['wants_to_feel'],
      'customer_type': _ratingsCapsule[1]['customer_type'],
      'age': '${_ratingsCapsule[0]['age']}',
      'current_selfie': base64Encode(currentSelfie.readAsBytesSync()),
      'level': _ratingsCapsule[1]['level'],
      'needs_help_with': _ratingsCapsule[1]['needs_help_with'],
      'recommended_for_user': '${_ratingsCapsule[2]}'
    };
  
    var uri = Uri.parse('$buddiesServer/api/customer/create_customer_details/');
    print(_body);
  
    await http.post(uri, body: json.encode(_body), headers: {
      &quot;Content-Type&quot;: &quot;application/json&quot;
    }).then((http.Response response) {
      switch (response.statusCode) {
        case (201):
          print('uploaded successfully');
          isUploaded = true;
          break;
  
        case (400):
          print('Messed up ${response.statusCode}');
  
          break;
        case (500):
          print('Failed Upload');
          isUploaded = false;
  
          break;
        default:
          print('Messed up ${response.statusCode}');
      }
      return isUploaded;
  </code></pre>
  <p>});</p>
  <p>What seems to be the reason for this? Any assistance would be appreciated</p>