Index: pkg/http/test/mock_client_test.dart |
diff --git a/pkg/http/test/mock_client_test.dart b/pkg/http/test/mock_client_test.dart |
index 59be93f22709038a9922e937be1c12b9a50661f1..4712adefef3227e15e33d5502c44196e070df108 100644 |
--- a/pkg/http/test/mock_client_test.dart |
+++ b/pkg/http/test/mock_client_test.dart |
@@ -37,7 +37,7 @@ void main() { |
return bodyStream.bytesToString().then((bodyString) { |
var controller = new StreamController<List<int>>(); |
async.then((_) { |
- controller.add('Request body was "$bodyString"'.charCodes); |
+ controller.add('Request body was "$bodyString"'.codeUnits); |
controller.close(); |
}); |