diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 00:00:20 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 00:00:20 +0000 |
commit | 4370cfa23317e252f489e3970cd07ed71f0e8b41 (patch) | |
tree | 5a6019612b08c81fafea7408449d392f17c47fba /net/http/http_response_headers_unittest.cc | |
parent | 01567506fc496f7df9393b68b001cb3d1270532e (diff) | |
download | chromium_src-4370cfa23317e252f489e3970cd07ed71f0e8b41.zip chromium_src-4370cfa23317e252f489e3970cd07ed71f0e8b41.tar.gz chromium_src-4370cfa23317e252f489e3970cd07ed71f0e8b41.tar.bz2 |
Fix problem with how HttpResponseHeaders::Update() copies headers -- it assumed the value range ended in a '\0'.
BUG=14220
TEST=HttpResponseHeadersTest.Update
Review URL: http://codereview.chromium.org/132042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18774 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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc index da18f11..ec26eb9 100644 --- a/net/http/http_response_headers_unittest.cc +++ b/net/http/http_response_headers_unittest.cc @@ -831,6 +831,17 @@ TEST(HttpResponseHeadersTest, Update) { "Cache-CONTROL: max-age=10000\n" "Foo: 1\n" }, + { "HTTP/1.1 200 OK\n" + "Content-Length: 450\n", + + "HTTP/1/1 304 Not Modified\n" + "connection: keep-alive\n" + "Cache-control: max-age=10001 \n", + + "HTTP/1.1 200 OK\n" + "Cache-control: max-age=10001\n" + "Content-Length: 450\n" + }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { |