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

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

Issue 10386024: Add redirect support to the HTTP client (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 8 years, 7 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 | « tests/standalone/io/http_redirect_test.dart ('k') | tests/standalone/io/web_socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_test.dart
diff --git a/tests/standalone/io/http_test.dart b/tests/standalone/io/http_test.dart
index df198bda53f8ebc1c894bb4840ec403ee8e09904..eab4b858265ca558e8a6a1ad46d4533e6648d1bf 100644
--- a/tests/standalone/io/http_test.dart
+++ b/tests/standalone/io/http_test.dart
@@ -431,6 +431,7 @@ void testReasonPhrase() {
HttpClient httpClient = new HttpClient();
HttpClientConnection conn =
httpClient.get("127.0.0.1", port, "/reasonformoving");
+ conn.followRedirects = false;
conn.onResponse = (HttpClientResponse response) {
Expect.equals(HttpStatus.MOVED_PERMANENTLY, response.statusCode);
Expect.equals("Don't come looking here any more", response.reasonPhrase);
« no previous file with comments | « tests/standalone/io/http_redirect_test.dart ('k') | tests/standalone/io/web_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698