diff options
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r-- | net/base/net_util.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 7afd4c5..492f7a8 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -1297,4 +1297,13 @@ std::wstring FormatUrl(const GURL& url, return url_string; } +GURL SimplifyUrlForRequest(const GURL& url) { + DCHECK(url.is_valid()); + GURL::Replacements replacements; + replacements.ClearUsername(); + replacements.ClearPassword(); + replacements.ClearRef(); + return url.ReplaceComponents(replacements); +} + } // namespace net |