| Index: net/http/http_response_headers.cc
|
| diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
|
| index f89c30da776362925e868456377da949bf19327a..4673c5fe606877533da574be49651f236f8e3b5b 100644
|
| --- a/net/http/http_response_headers.cc
|
| +++ b/net/http/http_response_headers.cc
|
| @@ -1242,6 +1242,15 @@ bool HttpResponseHeaders::HasStrongValidators() const {
|
| date_header);
|
| }
|
|
|
| +bool HttpResponseHeaders::HasValidators() const {
|
| + std::string etag_header;
|
| + EnumerateHeader(NULL, "etag", &etag_header);
|
| + std::string last_modified_header;
|
| + EnumerateHeader(NULL, "Last-Modified", &last_modified_header);
|
| + return HttpUtil::HasValidators(GetHttpVersion(), etag_header,
|
| + last_modified_header);
|
| +}
|
| +
|
| // From RFC 2616:
|
| // Content-Length = "Content-Length" ":" 1*DIGIT
|
| int64 HttpResponseHeaders::GetContentLength() const {
|
|
|