http
http copied to clipboard
Invalid header field name, with 44
I report this exception when I use the following request:
final http.Response response = await http.get(
url,
headers: <String,String>{
HttpHeaders.contentTypeHeader: 'application/json; charset=UTF-8',
HttpHeaders.authorizationHeader:"Bearer " + token,
},
);
print('response=' + response.body);
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Invalid header field name, with 44
#0 IOClient.send (package:http/src/io_client.dart:62:7)
There is not enough context to debug this. Could you provide a complete reproduction example.