diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 21:57:35 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 21:57:35 +0000 |
commit | 39d4a0984353dd3698b44e411dc82423d8a7c33e (patch) | |
tree | b1f3d658bf726f7593b8865bf233387eed36dc92 /net/http/http_response_headers_unittest.cc | |
parent | 2a9f248416fa4d1d7c1f0e5830785db4d98a72b7 (diff) | |
download | chromium_src-39d4a0984353dd3698b44e411dc82423d8a7c33e.zip chromium_src-39d4a0984353dd3698b44e411dc82423d8a7c33e.tar.gz chromium_src-39d4a0984353dd3698b44e411dc82423d8a7c33e.tar.bz2 |
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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers_unittest.cc')
-rw-r--r-- | net/http/http_response_headers_unittest.cc | 10 |
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", |