Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: net/cert_net/nss_ocsp.cc

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/sdch_dictionary_unittest.cc ('k') | net/cookies/canonical_cookie.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert_net/nss_ocsp.cc
diff --git a/net/cert_net/nss_ocsp.cc b/net/cert_net/nss_ocsp.cc
index 0eb4678434b247866712812c4e54be2ef1f9719c..1e7dd2bc5367b2d3671b4fda4b645732024113ff 100644
--- a/net/cert_net/nss_ocsp.cc
+++ b/net/cert_net/nss_ocsp.cc
@@ -794,7 +794,7 @@ SECStatus OCSPTrySendAndReceive(SEC_HTTP_REQUEST_SESSION request,
if (!is_cert && !is_crl && !is_ocsp) {
// We didn't get a hint from the MIME type, so do the best that we can.
- const std::string path = req->url().path();
+ const std::string path = req->url().path().as_string();
const std::string host = req->url().host();
is_crl = strcasestr(path.c_str(), ".crl") != NULL;
is_cert = strcasestr(path.c_str(), ".crt") != NULL ||
« no previous file with comments | « net/base/sdch_dictionary_unittest.cc ('k') | net/cookies/canonical_cookie.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698