| Index: net/http/http_util.cc
|
| ===================================================================
|
| --- net/http/http_util.cc (revision 29169)
|
| +++ net/http/http_util.cc (working copy)
|
| @@ -642,6 +642,20 @@
|
| return false;
|
| }
|
|
|
| +bool HttpUtil::HeadersIterator::AdvanceTo(const char* name) {
|
| + DCHECK(name != NULL);
|
| + DCHECK_EQ(0, StringToLowerASCII<std::string>(name).compare(name))
|
| + << "the header name must be in all lower case";
|
| +
|
| + while (GetNext()) {
|
| + if (LowerCaseEqualsASCII(name_begin_, name_end_, name)) {
|
| + return true;
|
| + }
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| HttpUtil::ValuesIterator::ValuesIterator(
|
| string::const_iterator values_begin,
|
| string::const_iterator values_end,
|
|
|