diff options
-rw-r--r-- | base/base_switches.cc | 7 | ||||
-rw-r--r-- | net/url_request/url_request_http_job.cc | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/base/base_switches.cc b/base/base_switches.cc index c9d65cb0f..1baed5d 100644 --- a/base/base_switches.cc +++ b/base/base_switches.cc @@ -31,6 +31,13 @@ const wchar_t kProcessType[] = L"type"; const wchar_t kEnableDCHECK[] = L"enable-dcheck"; // Refuse to make HTTP connections and refuse to accept certificate errors. +// For more information about the design of this feature, please see +// +// ForceHTTPS: Protecting High-Security Web Sites from Network Attacks +// Collin Jackson and Adam Barth +// In Proc. of the 17th International World Wide Web Conference (WWW 2008) +// +// Available at http://www.adambarth.com/papers/2008/jackson-barth.pdf const wchar_t kForceHTTPS[] = L"force-https"; } // namespace switches diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index 3cfb5709..7504c54 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -385,7 +385,7 @@ void URLRequestHttpJob::OnStartCompleted(int result) { if (result == net::OK) { NotifyHeadersComplete(); } else if (net::IsCertificateError(result) && - !CommandLine().HasSwitch(switches::kForceHTTPS)) { + !CommandLine().HasSwitch(switches::kForceHTTPS)) { // We encountered an SSL certificate error. Ask our delegate to decide // what we should do. // TODO(wtc): also pass ssl_info.cert_status, or just pass the whole |