summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers_unittest.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 01:11:11 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 01:11:11 +0000
commitbd069d746a3c1df6259e5e735a7807a26ae0e83f (patch)
treed24545f3aa8ff91e2796f4bee73b2f84a7521731 /net/http/http_response_headers_unittest.cc
parent8c793c85984917559afe3e257f94df4dec5e3176 (diff)
downloadchromium_src-bd069d746a3c1df6259e5e735a7807a26ae0e83f.zip
chromium_src-bd069d746a3c1df6259e5e735a7807a26ae0e83f.tar.gz
chromium_src-bd069d746a3c1df6259e5e735a7807a26ae0e83f.tar.bz2
Reland 85821 - Http cache: Make sure that we don't use http 1.1 features
for http 1.0 resources. BUG=74061 TEST=netunittests Review URL: http://codereview.chromium.org/6995010 Review URL: http://codereview.chromium.org/7042027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers_unittest.cc')
-rw-r--r--net/http/http_response_headers_unittest.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc
index 7c1f134..c2d34b4 100644
--- a/net/http/http_response_headers_unittest.cc
+++ b/net/http/http_response_headers_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -1434,7 +1434,13 @@ TEST(HttpResponseHeadersTest, HasStrongValidators) {
{ "HTTP/0.9 200 OK",
false
},
- { "HTTP/0.9 200 OK\n"
+ { "HTTP/1.0 200 OK\n"
+ "Date: Wed, 28 Nov 2007 01:40:10 GMT\n"
+ "Last-Modified: Wed, 28 Nov 2007 00:40:10 GMT\n"
+ "ETag: \"foo\"\n",
+ false
+ },
+ { "HTTP/1.1 200 OK\n"
"Date: Wed, 28 Nov 2007 01:40:10 GMT\n"
"Last-Modified: Wed, 28 Nov 2007 00:40:10 GMT\n"
"ETag: \"foo\"\n",