Index: net/tools/quic/quic_in_memory_cache.cc |
diff --git a/net/tools/quic/quic_in_memory_cache.cc b/net/tools/quic/quic_in_memory_cache.cc |
index 132d5d6bb7066b8d71c089e752e45dc0f73ba10d..0a6b0e237da28dcb1a8d89d7d0f9e5b3d9313160 100644 |
--- a/net/tools/quic/quic_in_memory_cache.cc |
+++ b/net/tools/quic/quic_in_memory_cache.cc |
@@ -202,6 +202,7 @@ void QuicInMemoryCache::AddResponseImpl( |
const SpdyHeaderBlock& response_headers, |
StringPiece response_body, |
const SpdyHeaderBlock& response_trailers) { |
+ DCHECK(!host.empty()) << "Host must be populated, e.g. \"www.google.com\""; |
string key = GetKey(host, path); |
if (ContainsKey(responses_, key)) { |
LOG(DFATAL) << "Response for '" << key << "' already exists!"; |