diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 21:23:52 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 21:23:52 +0000 |
commit | 79867b59fa6bbfb55fcd9a6b6ba6b7d55a68539e (patch) | |
tree | 1a13727d7acf521de869dde1040393b6e056a3e5 /net | |
parent | ad511f9375d25cdf8269150a2a65bc204f67eb1b (diff) | |
download | chromium_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')
-rw-r--r-- | net/http/http_response_headers.cc | 2 | ||||
-rw-r--r-- | net/http/http_response_headers.h | 4 |
2 files changed, 3 insertions, 3 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) diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h index fcd069a..1a93486 100644 --- a/net/http/http_response_headers.h +++ b/net/http/http_response_headers.h @@ -240,8 +240,8 @@ class HttpResponseHeaders : // index |from|. Returns string::npos if not found. size_t FindHeader(size_t from, const std::string& name) const; - // Add a header->value pair to our list. If we already have header in our list, - // append the value to it. + // Add a header->value pair to our list. If we already have header in our + // list, append the value to it. void AddHeader(std::string::const_iterator name_begin, std::string::const_iterator name_end, std::string::const_iterator value_begin, |