| Index: utils/tests/pub/pub_lish_test.dart
|
| diff --git a/utils/tests/pub/pub_lish_test.dart b/utils/tests/pub/pub_lish_test.dart
|
| index b2b165555187083beb1b63a96c6a346ec5a49a3c..1bfa3d6cfb69a2c347d2016380c7159ad693903d 100644
|
| --- a/utils/tests/pub/pub_lish_test.dart
|
| +++ b/utils/tests/pub/pub_lish_test.dart
|
| @@ -284,18 +284,11 @@ main() {
|
| handleUploadForm(server);
|
|
|
| server.handle('POST', '/upload', (request, response) {
|
| - // TODO(rnystrom): HTTP requires that you don't start sending a response
|
| - // until the request has been completely sent, but dart:io doesn't
|
| - // ensure that (#7044). Workaround it by manually consuming the entire
|
| - // input stream before we start responding. If we don't do this, curl
|
| - // will choke on this on Mac and Windows.
|
| - return consumeInputStream(request.inputStream).transform((_) {
|
| - response.statusCode = 400;
|
| - response.headers.contentType = new ContentType('application', 'xml');
|
| - response.outputStream.writeString('<Error><Message>Your request sucked.'
|
| - '</Message></Error>');
|
| - response.outputStream.close();
|
| - });
|
| + response.statusCode = 400;
|
| + response.headers.contentType = new ContentType('application', 'xml');
|
| + response.outputStream.writeString('<Error><Message>Your request sucked.'
|
| + '</Message></Error>');
|
| + response.outputStream.close();
|
| });
|
|
|
| // TODO(nweiz): This should use the server's error message once the client
|
|
|