From 89ceba9a484f853964e5504f14927a8cf7e72449 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Sat, 21 Mar 2009 03:46:06 +0000 Subject: Fully reset HttpNetworkTransaction::response_ when restarting the transaction. The reset is done using the default constructor. This is less fragile than resetting each member manually, and in fact not all members were being reset (for example, vary_data and ssl_info). In the case of vary_data this could cause a subtle glitch, since calling HttpVaryData::Init() twice on the same object doesn't fully re-initialize. The changes outside of http_network_transaction.cc are just a safety net -- it seemed reasonable to make HttpVaryData::Init() support the multiple-init model. Review URL: http://codereview.chromium.org/50031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12243 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_response_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/http/http_response_info.cc') diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc index 536d42b..a94aa91 100644 --- a/net/http/http_response_info.cc +++ b/net/http/http_response_info.cc @@ -8,7 +8,7 @@ namespace net { HttpResponseInfo::HttpResponseInfo() - : response_data_file(base::kInvalidPlatformFileValue) { + : was_cached(false), response_data_file(base::kInvalidPlatformFileValue) { } HttpResponseInfo::~HttpResponseInfo() { -- cgit v1.1