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

Unified Diff: tests/standalone/io/http_detach_socket_test.dart

Issue 16758008: Add 'Server' and 'User-Agent' default header fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: git cl dcommit Created 7 years, 6 months 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 | « sdk/lib/io/options.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_detach_socket_test.dart
diff --git a/tests/standalone/io/http_detach_socket_test.dart b/tests/standalone/io/http_detach_socket_test.dart
index 2345079290793c01f80aba9f630d9e62b80e9ad2..1ced3d86342a34a723716dee21c6245e5afdb148 100644
--- a/tests/standalone/io/http_detach_socket_test.dart
+++ b/tests/standalone/io/http_detach_socket_test.dart
@@ -13,6 +13,7 @@ import "dart:isolate";
void testServerDetachSocket() {
HttpServer.bind("127.0.0.1", 0).then((server) {
+ server.serverHeader = null;
server.listen((request) {
var response = request.response;
response.contentLength = 0;
@@ -89,6 +90,7 @@ void testClientDetachSocket() {
});
var client = new HttpClient();
+ client.userAgent = null;
client.get("127.0.0.1", server.port, "/")
.then((request) => request.close())
.then((response) {
« no previous file with comments | « sdk/lib/io/options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698