diff options
author | cdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-22 01:43:33 +0000 |
---|---|---|
committer | cdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-22 01:43:33 +0000 |
commit | 91f568903f5d067e7a82b2543434ba13b9dee9ef (patch) | |
tree | be24ab4ddd5fbc657bef13e3b5cf7ad83a82fcce /net/proxy | |
parent | 31268815420a038ad43ba7808862f97a8a129801 (diff) | |
download | chromium_src-91f568903f5d067e7a82b2543434ba13b9dee9ef.zip chromium_src-91f568903f5d067e7a82b2543434ba13b9dee9ef.tar.gz chromium_src-91f568903f5d067e7a82b2543434ba13b9dee9ef.tar.bz2 |
Introduce GURL::SchemeIsHttpFamily(), which returns true for http and https.
BUG=274679
TEST=N/A
TBR=cbentzel, jamesr, simonjam, tzik, stevet, mpcomplete
Review URL: https://chromiumcodereview.appspot.com/23064011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r-- | net/proxy/proxy_script_fetcher_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/proxy/proxy_script_fetcher_impl.cc b/net/proxy/proxy_script_fetcher_impl.cc index 2bf9e66..f8925fa 100644 --- a/net/proxy/proxy_script_fetcher_impl.cc +++ b/net/proxy/proxy_script_fetcher_impl.cc @@ -211,7 +211,7 @@ void ProxyScriptFetcherImpl::OnResponseStarted(URLRequest* request) { } // Require HTTP responses to have a success status code. - if (request->url().SchemeIs("http") || request->url().SchemeIs("https")) { + if (request->url().SchemeIsHTTPOrHTTPS()) { // NOTE about status codes: We are like Firefox 3 in this respect. // {IE 7, Safari 3, Opera 9.5} do not care about the status code. if (request->GetResponseCode() != 200) { |