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

Unified Diff: pkg/http/lib/src/io_client.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
« no previous file with comments | « no previous file | pkg/http/test/request_test.dart » ('j') | pkg/http/test/request_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/io_client.dart
diff --git a/pkg/http/lib/src/io_client.dart b/pkg/http/lib/src/io_client.dart
index 995ff3b1d9e60cf163af424b3ba769110056932c..48416cea5b809ae3de94d6946be5d0cc65536e85 100644
--- a/pkg/http/lib/src/io_client.dart
+++ b/pkg/http/lib/src/io_client.dart
@@ -25,6 +25,8 @@ class IOClient extends BaseClient {
var completer = new Completer<StreamedResponse>();
var connection = _inner.openUrl(request.method, request.url);
+ connection.followRedirects = request.followRedirects;
+ connection.maxRedirects = request.maxRedirects;
connection.onError = (e) {
async.then((_) {
// TODO(nweiz): remove this when issue 4974 is fixed
« no previous file with comments | « no previous file | pkg/http/test/request_test.dart » ('j') | pkg/http/test/request_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698