You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Postman and Spring Web doing REST. I can define in Postman the Content-Type of a field and it's perfectly accepted by the server. But with "http", it's always sent as "text/plain; charset=utf-8" because, it's ASCII.
I would like to set the Content-Type like application/json for my JSON.
Using Postman and Spring Web doing REST. I can define in Postman the Content-Type of a field and it's perfectly accepted by the server. But with "http", it's always sent as "text/plain; charset=utf-8" because, it's ASCII.
I would like to set the Content-Type like application/json for my JSON.
Here the problem in http:
String _headerForField(String name, String value) { var header = 'content-disposition: form-data; name="${_browserEncode(name)}"'; if (!isPlainAscii(value)) { header = '$header\r\n' 'content-type: text/plain; charset=utf-8\r\n' 'content-transfer-encoding: binary'; } return '$header\r\n\r\n'; }
The text was updated successfully, but these errors were encountered: