Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: utils/tests/pub/test_pub.dart

Issue 11528005: Reapply "Stop working around issue 6984." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/pub/pub_lish_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index ebd06ecee7c3645a4ba9148c6c975e0881c5dc10..806ce3ee34d0a5a6cb5f46083b7e467d105ef267 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -109,7 +109,7 @@ void serve([List<Descriptor> contents]) {
} catch (e) {
response.statusCode = 404;
response.contentLength = 0;
- closeHttpResponse(request, response);
+ response.outputStream.close();
return;
}
@@ -118,14 +118,14 @@ void serve([List<Descriptor> contents]) {
response.statusCode = 200;
response.contentLength = data.length;
response.outputStream.write(data);
- closeHttpResponse(request, response);
+ response.outputStream.close();
});
future.handleException((e) {
print("Exception while handling ${request.uri}: $e");
response.statusCode = 500;
response.reasonPhrase = e.message;
- closeHttpResponse(request, response);
+ response.outputStream.close();
});
};
_server.listen("127.0.0.1", 0);
« no previous file with comments | « utils/tests/pub/pub_lish_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698