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

Unified Diff: pkg/http/test/utils.dart

Issue 11414195: Make #maxRedirects and #followRedirects work for the dart:io HTTP client. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« pkg/http/test/request_test.dart ('K') | « pkg/http/test/request_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/utils.dart
diff --git a/pkg/http/test/utils.dart b/pkg/http/test/utils.dart
index 19a3cf32c113bf838dba9352f69d478a1d221fe8..3548df015d53e9946732ba29809142a8e777cf3a 100644
--- a/pkg/http/test/utils.dart
+++ b/pkg/http/test/utils.dart
@@ -36,7 +36,8 @@ void startServer() {
(request, response) {
var n = int.parse(new Uri.fromString(request.uri).query);
response.statusCode = 302;
- response.headers.set('location', '/loop?${n + 1}');
+ response.headers.set('location',
+ serverUrl.resolve('/loop?${n + 1}').toString());
response.contentLength = 0;
response.outputStream.close();
});
@@ -44,7 +45,7 @@ void startServer() {
_server.addRequestHandler((request) => request.path == '/redirect',
(request, response) {
response.statusCode = 302;
- response.headers.set('location', '/');
+ response.headers.set('location', serverUrl.resolve('/').toString());
response.contentLength = 0;
response.outputStream.close();
});
« pkg/http/test/request_test.dart ('K') | « pkg/http/test/request_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698