| Index: net/http/http_response_headers.cc
|
| diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
|
| index 47047c969424f945f5ab4edbc16f073e59886c0f..9458251d843ab09532245f252a91ac67c339cd31 100644
|
| --- a/net/http/http_response_headers.cc
|
| +++ b/net/http/http_response_headers.cc
|
| @@ -116,6 +116,8 @@ int MapHttpResponseCode(int code) {
|
|
|
| } // namespace
|
|
|
| +const char HttpResponseHeaders::kXAutoLogin[] = "X-Auto-Login";
|
| +
|
| struct HttpResponseHeaders::ParsedHeader {
|
| // A header "continuation" contains only a subsequent value for the
|
| // preceding header. (Header values are comma separated.)
|
| @@ -329,7 +331,7 @@ void HttpResponseHeaders::Parse(const std::string& raw_input) {
|
| // ParseStatusLine adds a normalized status line to raw_headers_
|
| std::string::const_iterator line_begin = raw_input.begin();
|
| std::string::const_iterator line_end =
|
| - find(line_begin, raw_input.end(), '\0');
|
| + std::find(line_begin, raw_input.end(), '\0');
|
| // has_headers = true, if there is any data following the status line.
|
| // Used by ParseStatusLine() to decide if a HTTP/0.9 is really a HTTP/1.0.
|
| bool has_headers = (line_end != raw_input.end() &&
|
| @@ -457,7 +459,7 @@ std::string HttpResponseHeaders::GetStatusText() const {
|
| std::string::const_iterator begin = status_text.begin();
|
| std::string::const_iterator end = status_text.end();
|
| for (int i = 0; i < 2; ++i)
|
| - begin = find(begin, end, ' ') + 1;
|
| + begin = std::find(begin, end, ' ') + 1;
|
| return std::string(begin, end);
|
| }
|
|
|
| @@ -557,7 +559,7 @@ HttpVersion HttpResponseHeaders::ParseVersion(
|
| return HttpVersion();
|
| }
|
|
|
| - std::string::const_iterator dot = find(p, line_end, '.');
|
| + std::string::const_iterator dot = std::find(p, line_end, '.');
|
| if (dot == line_end) {
|
| DVLOG(1) << "malformed version";
|
| return HttpVersion();
|
| @@ -604,7 +606,7 @@ void HttpResponseHeaders::ParseStatusLine(
|
| }
|
|
|
| // TODO(eroman): this doesn't make sense if ParseVersion failed.
|
| - std::string::const_iterator p = find(line_begin, line_end, ' ');
|
| + std::string::const_iterator p = std::find(line_begin, line_end, ' ');
|
|
|
| if (p == line_end) {
|
| DVLOG(1) << "missing response status; assuming 200 OK";
|
|
|