From 79867b59fa6bbfb55fcd9a6b6ba6b7d55a68539e Mon Sep 17 00:00:00 2001 From: "evanm@google.com" Date: Thu, 21 Aug 2008 21:23:52 +0000 Subject: Blind fix for net unittest failure. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1189 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_response_headers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/http/http_response_headers.cc') diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc index f0c5e46..1d65bab 100644 --- a/net/http/http_response_headers.cc +++ b/net/http/http_response_headers.cc @@ -640,7 +640,7 @@ bool HttpResponseHeaders::IsRedirect(string* location) const { // If we lack a Location header, then we can't treat this as a redirect. // We assume that the first non-empty location value is the target URL that // we want to follow. TODO(darin): Is this consistent with other browsers? - size_t i = -1; + size_t i = string::npos; do { i = FindHeader(++i, "location"); if (i == string::npos) -- cgit v1.1