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
The header is set to {'Content-Type': "application/json"}.
But, the most client software appends to UTF encoding into HTTP header : [application/json; charset=utf-8].
The isMime() loose default is false.
Thus I think the loose default option should be set the true for client software.
I've tested the JSON request for my project.
This is my dart client is at
https://github.com/bsjung/start_examples/blob/master/jwt/server/client.dart.
The header is set to {'Content-Type': "application/json"}.
But, the most client software appends to UTF encoding into HTTP header : [application/json; charset=utf-8].
The isMime() loose default is false.
Thus I think the loose default option should be set the true for client software.
16 bool isMime(String type, {loose: false}) =>
17 _request.headers[HttpHeaders.contentTypeHeader]
18 .where((value) => loose ? value.contains(type) : value == type)
19 .isNotEmpty;
Benjamin Jung ( [email protected] )
The text was updated successfully, but these errors were encountered: