Chromium Code Reviews| Index: net/url_request/url_request.cc |
| =================================================================== |
| --- net/url_request/url_request.cc (revision 34373) |
| +++ net/url_request/url_request.cc (working copy) |
| @@ -459,6 +459,11 @@ |
| method_ = "GET"; |
| upload_ = NULL; |
| } |
| + |
| + // Suppress the referrer if we're redirecting out of https. |
| + if (GURL(referrer_).SchemeIsSecure() && !location.SchemeIsSecure()) |
| + referrer_.clear(); |
| + |
| url_ = location; |
| --redirect_limit_; |