summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-09 01:32:28 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-09 01:32:28 +0000
commit748aba86a29c9db603cd46bdfc5cce8d6bfee17e (patch)
tree04c1486ddc2dc52cf2f33323962e5135915ee4ca /net/url_request
parent43cee51d23a058dfe56785e837779924f9d92138 (diff)
downloadchromium_src-748aba86a29c9db603cd46bdfc5cce8d6bfee17e.zip
chromium_src-748aba86a29c9db603cd46bdfc5cce8d6bfee17e.tar.gz
chromium_src-748aba86a29c9db603cd46bdfc5cce8d6bfee17e.tar.bz2
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
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_view_net_internals_job.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/url_request/url_request_view_net_internals_job.cc b/net/url_request/url_request_view_net_internals_job.cc
index 6120f25..733be40 100644
--- a/net/url_request/url_request_view_net_internals_job.cc
+++ b/net/url_request/url_request_view_net_internals_job.cc
@@ -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>"