| 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();
|
|
|