Use same domain-match algorithm for no-proxy and netrc.

Now "example.org" does not domain-match ".example.org" in both
functions.
This commit is contained in:
Tatsuhiro Tsujikawa 2011-10-29 00:16:46 +09:00
parent 69966d7ac9
commit 0ba6f8c352
6 changed files with 39 additions and 34 deletions

View file

@ -64,7 +64,7 @@ void NetrcTest::testFindAuthenticator()
SharedHandle<Authenticator> domainMatchAuth2 =
netrc.findAuthenticator("my.domain");
CPPUNIT_ASSERT(domainMatchAuth2);
CPPUNIT_ASSERT_EQUAL(std::string("dmname"), domainMatchAuth2->getLogin());
CPPUNIT_ASSERT_EQUAL(std::string("default"), domainMatchAuth2->getLogin());
}
void NetrcTest::testParse()