0

Net: Allow about:cache to show contents of urls with arguments.

Parsing of arguments should not be done for about:cache urls.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/521061

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35861 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
rvargas@google.com
2010-01-09 01:32:28 +00:00
parent 43cee51d23
commit 748aba86a2

@ -536,16 +536,6 @@ bool URLRequestViewNetInternalsJob::GetData(std::string* mime_type,
URLRequestContext* context = request_->context();
std::string details = url_format_->GetDetails(request_->url());
std::string query;
// Split out the query parameters.
std::string::size_type query_start = details.find('?');
if (query_start != std::string::npos) {
if (query_start + 1 < details.size())
query = details.substr(query_start + 1);
details = details.substr(0, query_start);
}
data->clear();
// Use a different handler for "view-cache/*" subpaths.
@ -556,6 +546,16 @@ bool URLRequestViewNetInternalsJob::GetData(std::string* mime_type,
return true;
}
std::string query;
// Split out the query parameters.
std::string::size_type query_start = details.find('?');
if (query_start != std::string::npos) {
if (query_start + 1 < details.size())
query = details.substr(query_start + 1);
details = details.substr(0, query_start);
}
data->append("<!DOCTYPE HTML>"
"<html><head><title>Network internals</title>"
"<style>"