Chromium Code Reviews| Index: net/ocsp/nss_ocsp.cc |
| diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc |
| index 33d1933f348ebbae152f5f5be3404e5f7e82958d..536e0621987267897fe9c28a0969d880d7f0d147 100644 |
| --- a/net/ocsp/nss_ocsp.cc |
| +++ b/net/ocsp/nss_ocsp.cc |
| @@ -37,6 +37,7 @@ |
| #include "net/base/upload_data_stream.h" |
| #include "net/http/http_request_headers.h" |
| #include "net/http/http_response_headers.h" |
| +#include "net/url_request/redirect_info.h" |
| #include "net/url_request/url_request.h" |
| #include "net/url_request/url_request_context.h" |
| #include "url/gurl.h" |
| @@ -283,12 +284,12 @@ class OCSPRequestSession |
| } |
| virtual void OnReceivedRedirect(URLRequest* request, |
| - const GURL& new_url, |
| + const net::RedirectInfo& redirect_info, |
|
mmenke
2014/07/17 16:55:09
"net::" doesn't look to be needed.
davidben
2014/07/17 22:03:55
Done.
|
| bool* defer_redirect) OVERRIDE { |
| DCHECK_EQ(request, request_); |
| DCHECK_EQ(base::MessageLoopForIO::current(), io_loop_); |
| - if (!new_url.SchemeIs("http")) { |
| + if (!redirect_info.url.SchemeIs("http")) { |
| // Prevent redirects to non-HTTP schemes, including HTTPS. This matches |
| // the initial check in OCSPServerSession::CreateRequest(). |
| CancelURLRequest(); |