summaryrefslogtreecommitdiffstats
path: root/net/base/host_mapping_rules.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/host_mapping_rules.cc')
-rw-r--r--net/base/host_mapping_rules.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/host_mapping_rules.cc b/net/base/host_mapping_rules.cc
index 56b9694..a535d14 100644
--- a/net/base/host_mapping_rules.cc
+++ b/net/base/host_mapping_rules.cc
@@ -19,7 +19,7 @@ bool HostMappingRules::RewriteHost(HostPortPair* host_port) const {
for (ExclusionRuleList::const_iterator it = exclusion_rules_.begin();
it != exclusion_rules_.end(); ++it) {
const ExclusionRule& rule = *it;
- if (MatchPatternASCII(host_port->host(), rule.hostname_pattern))
+ if (MatchPattern(host_port->host(), rule.hostname_pattern))
return false;
}
@@ -35,9 +35,9 @@ bool HostMappingRules::RewriteHost(HostPortPair* host_port) const {
// *.foo.com:1234
// First, we'll check for a match just on hostname.
// If that fails, we'll check for a match with both hostname and port.
- if (!MatchPatternASCII(host_port->host(), rule.hostname_pattern)) {
+ if (!MatchPattern(host_port->host(), rule.hostname_pattern)) {
std::string host_port_string = host_port->ToString();
- if (!MatchPatternASCII(host_port_string, rule.hostname_pattern))
+ if (!MatchPattern(host_port_string, rule.hostname_pattern))
continue; // This rule doesn't apply.
}