summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.cc
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 21:23:52 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 21:23:52 +0000
commit79867b59fa6bbfb55fcd9a6b6ba6b7d55a68539e (patch)
tree1a13727d7acf521de869dde1040393b6e056a3e5 /net/http/http_response_headers.cc
parentad511f9375d25cdf8269150a2a65bc204f67eb1b (diff)
downloadchromium_src-79867b59fa6bbfb55fcd9a6b6ba6b7d55a68539e.zip
chromium_src-79867b59fa6bbfb55fcd9a6b6ba6b7d55a68539e.tar.gz
chromium_src-79867b59fa6bbfb55fcd9a6b6ba6b7d55a68539e.tar.bz2
Blind fix for net unittest failure.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.cc')
-rw-r--r--net/http/http_response_headers.cc2
1 files changed, 1 insertions, 1 deletions
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)