summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-01-28 14:33:23 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-01-28 14:33:23 +0000
commit0bf9c31afc5f619f265640f7bf28b9538d61cea9 (patch)
tree7058d149d91414eca9b666ec074406602ba9bd3e /src/AbstractCommand.cc
parenteb4116ae5782f76a2115647d3cdeeedd5c28fc4f (diff)
2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced "." with A2STR::DOT_C * src/AbstractCommand.cc * src/Cookie.cc * src/DownloadContext.cc * src/FtpConnection.cc * src/RequestGroup.cc * src/util.cc
Diffstat (limited to 'src/AbstractCommand.cc')
-rw-r--r--src/AbstractCommand.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc
index 20a8cc4c..f8055177 100644
--- a/src/AbstractCommand.cc
+++ b/src/AbstractCommand.cc
@@ -409,10 +409,10 @@ public:
bool operator()(const std::string& domain) const
{
- if(util::startsWith(domain, ".")) {
+ if(util::startsWith(domain, A2STR::DOT_C)) {
return util::endsWith(_hostname, domain);
} else {
- return util::endsWith(_hostname, "."+domain);
+ return util::endsWith(_hostname, A2STR::DOT_C+domain);
}
}
};
@@ -427,7 +427,7 @@ static bool inNoProxy(const SharedHandle<Request>& req,
}
return
std::find_if(entries.begin(), entries.end(),
- DomainMatch("."+req->getHost())) != entries.end();
+ DomainMatch(A2STR::DOT_C+req->getHost())) != entries.end();
}
bool AbstractCommand::isProxyDefined() const