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

Unified Diff: test/http_multipart_test.dart

Issue 2945343002: Change '127.0.0.1' to 'localhost' to support both IPv4 and IPv6 envs. (Closed)
Patch Set: Created 3 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
« test/http_body_test.dart ('K') | « test/http_body_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/http_multipart_test.dart
diff --git a/test/http_multipart_test.dart b/test/http_multipart_test.dart
index 96d57026827f1f0df645c4632cedacd1a958a6eb..b113fbd85058dfb2a729584769af8fea30b22954 100644
--- a/test/http_multipart_test.dart
+++ b/test/http_multipart_test.dart
@@ -50,7 +50,7 @@ void postDataTest(List<int> message,
String boundary,
List<FormField> expectedFields,
{defaultEncoding: LATIN1}) {
- HttpServer.bind("127.0.0.1", 0).then((server) {
+ HttpServer.bind("localhost", 0).then((server) {
server.listen((request) {
String boundary = request.headers.contentType.parameters['boundary'];
request
@@ -86,7 +86,7 @@ void postDataTest(List<int> message,
});
});
var client = new HttpClient();
- client.post('127.0.0.1', server.port, '/')
+ client.post('localhost', server.port, '/')
.then((request) {
request.headers.set('content-type',
'multipart/form-data; boundary=$boundary');
« test/http_body_test.dart ('K') | « test/http_body_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698