| Index: pkg/http/test/streamed_request_test.dart
|
| diff --git a/pkg/http/test/streamed_request_test.dart b/pkg/http/test/streamed_request_test.dart
|
| index 761102c8aa464ed18517cfd7fb1499425b574bb0..c9e3689dc372fc6d9cb1ca76e9812c027627d04e 100644
|
| --- a/pkg/http/test/streamed_request_test.dart
|
| +++ b/pkg/http/test/streamed_request_test.dart
|
| @@ -58,4 +58,17 @@ void main() {
|
| expect(() => request.contentLength = 10, throwsStateError);
|
| });
|
| });
|
| +
|
| + // Regression test.
|
| + test('.send() with a response with no content length', () {
|
| + return startServer().then((_) {
|
| + var request = new http.StreamedRequest(
|
| + 'GET', serverUrl.resolve('/no-content-length'));
|
| + request.sink.close();
|
| + return request.send();
|
| + }).then((response) {
|
| + expect(UTF8.decodeStream(response.stream), completion(equals('body')));
|
| + }).whenComplete(stopServer);
|
| + });
|
| +
|
| }
|
|
|