diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-16 20:35:15 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-16 20:35:15 +0000 |
commit | 9a5399f00cbc2e4fcac622b19cb8ae6605ac1d6c (patch) | |
tree | 7325b768af35a9593c4a1dc3c6991df1307f1cdf /net/tools/quic/quic_in_memory_cache.cc | |
parent | 62de70749ffe63593f83b5e34439b6d9c7101e65 (diff) | |
download | chromium_src-9a5399f00cbc2e4fcac622b19cb8ae6605ac1d6c.zip chromium_src-9a5399f00cbc2e4fcac622b19cb8ae6605ac1d6c.tar.gz chromium_src-9a5399f00cbc2e4fcac622b19cb8ae6605ac1d6c.tar.bz2 |
Fix command line handling in quic_server
Review URL: https://chromiumcodereview.appspot.com/14896009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/quic/quic_in_memory_cache.cc')
-rw-r--r-- | net/tools/quic/quic_in_memory_cache.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/tools/quic/quic_in_memory_cache.cc b/net/tools/quic/quic_in_memory_cache.cc index 9d086e2..b406126 100644 --- a/net/tools/quic/quic_in_memory_cache.cc +++ b/net/tools/quic/quic_in_memory_cache.cc @@ -15,11 +15,12 @@ using std::string; // Specifies the directory used during QuicInMemoryCache // construction to seed the cache. Cache directory can be // generated using `wget -p --save-headers <url> -string FLAGS_quic_in_memory_cache_dir; namespace net { namespace tools { +std::string FLAGS_quic_in_memory_cache_dir = "/tmp/quic-data"; + namespace { // BalsaVisitor implementation (glue) which caches response bodies. @@ -164,7 +165,9 @@ QuicInMemoryCache::QuicInMemoryCache() { response_headers.RemoveAllOfHeader("X-Original-Url"); // Remove the protocol so that the string is of the form host + path, // which is parsed properly below. - if (StringPieceUtils::StartsWithIgnoreCase(base, "http://")) { + if (StringPieceUtils::StartsWithIgnoreCase(base, "https://")) { + base.remove_prefix(8); + } else if (StringPieceUtils::StartsWithIgnoreCase(base, "http://")) { base.remove_prefix(7); } } |