| Index: pkg/http/test/utils.dart
|
| diff --git a/pkg/http/test/utils.dart b/pkg/http/test/utils.dart
|
| index 9c6e584d4aedb6468d815b392c9be6e0503da657..7b42bec00163174423f894406575da2c02f1dfec 100644
|
| --- a/pkg/http/test/utils.dart
|
| +++ b/pkg/http/test/utils.dart
|
| @@ -5,6 +5,7 @@
|
| library test_utils;
|
|
|
| import 'dart:async';
|
| +import 'dart:convert';
|
| import 'dart:io';
|
| import 'dart:json' as json;
|
|
|
| @@ -62,7 +63,7 @@ Future startServer() {
|
| if (encodingName != null) {
|
| outputEncoding = requiredEncodingForCharset(encodingName);
|
| } else {
|
| - outputEncoding = Encoding.ASCII;
|
| + outputEncoding = ASCII;
|
| }
|
|
|
| response.headers.contentType =
|
| @@ -76,7 +77,7 @@ Future startServer() {
|
| } else if (request.headers.contentType.charset != null) {
|
| var encoding = requiredEncodingForCharset(
|
| request.headers.contentType.charset);
|
| - requestBody = decodeString(requestBodyBytes, encoding);
|
| + requestBody = encoding.decode(requestBodyBytes);
|
| } else {
|
| requestBody = requestBodyBytes;
|
| }
|
|
|