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

Unified Diff: mojo/examples/wget/wget.cc

Issue 324023002: Mojo: cleanup redirect handling for network service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | « no previous file | mojo/services/network/url_loader_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/wget/wget.cc
diff --git a/mojo/examples/wget/wget.cc b/mojo/examples/wget/wget.cc
index e470291b8df689b0ba3236b7f2d67ba4ac91fcb5..d72b186932b93fb89878540974533e8a454f673a 100644
--- a/mojo/examples/wget/wget.cc
+++ b/mojo/examples/wget/wget.cc
@@ -22,7 +22,7 @@ class WGetApp : public Application, public URLLoaderClient {
virtual void OnReceivedRedirect(URLResponsePtr response,
const String& new_url,
const String& new_method) MOJO_OVERRIDE {
- assert(false); // This should never be called.
+ PrintResponse(response);
}
virtual void OnReceivedResponse(URLResponsePtr response) MOJO_OVERRIDE {
@@ -50,7 +50,7 @@ class WGetApp : public Application, public URLLoaderClient {
URLRequestPtr request(URLRequest::New());
request->url = url;
request->method = "GET";
- request->follow_redirects = true;
+ request->auto_follow_redirects = true;
DataPipe data_pipe;
response_body_stream_ = data_pipe.consumer_handle.Pass();
« no previous file with comments | « no previous file | mojo/services/network/url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698