mirror of https://github.com/aria2/aria2
2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added "Firefox3 Cookie" feature to FeatureConfig * src/FeatureConfig.cc * src/FeatureConfig.h * test/FeatureConfigTest.ccpull/1/head
parent
40c1d08c5a
commit
9fc8b15736
|
@ -1,3 +1,10 @@
|
||||||
|
2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Added "Firefox3 Cookie" feature to FeatureConfig
|
||||||
|
* src/FeatureConfig.cc
|
||||||
|
* src/FeatureConfig.h
|
||||||
|
* test/FeatureConfigTest.cc
|
||||||
|
|
||||||
2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Bump up version number to 0.16.0b
|
Bump up version number to 0.16.0b
|
||||||
|
|
|
@ -48,6 +48,7 @@ const std::string FeatureConfig::FEATURE_METALINK("Metalink");
|
||||||
const std::string FeatureConfig::FEATURE_MESSAGE_DIGEST("Message Digest");
|
const std::string FeatureConfig::FEATURE_MESSAGE_DIGEST("Message Digest");
|
||||||
const std::string FeatureConfig::FEATURE_ASYNC_DNS("Async DNS");
|
const std::string FeatureConfig::FEATURE_ASYNC_DNS("Async DNS");
|
||||||
const std::string FeatureConfig::FEATURE_GZIP("GZip");
|
const std::string FeatureConfig::FEATURE_GZIP("GZip");
|
||||||
|
const std::string FeatureConfig::FEATURE_FIREFOX3_COOKIE("Firefox3 Cookie");
|
||||||
|
|
||||||
#ifdef ENABLE_SSL
|
#ifdef ENABLE_SSL
|
||||||
# define HTTPS_ENABLED true
|
# define HTTPS_ENABLED true
|
||||||
|
@ -85,6 +86,12 @@ const std::string FeatureConfig::FEATURE_GZIP("GZip");
|
||||||
# define GZIP_ENABLED false
|
# define GZIP_ENABLED false
|
||||||
#endif // !HAVE_LIBZ
|
#endif // !HAVE_LIBZ
|
||||||
|
|
||||||
|
#ifdef HAVE_SQLITE3
|
||||||
|
# define FIREFOX3_COOKIE_ENABLED true
|
||||||
|
#else // !HAVE_SQLITE3
|
||||||
|
# define FIREFOX3_COOKIE_ENABLED false
|
||||||
|
#endif // !HAVE_SQLITE3
|
||||||
|
|
||||||
FeatureConfig::FeatureConfig() {
|
FeatureConfig::FeatureConfig() {
|
||||||
_defaultPorts.insert(PortMap::value_type(Request::PROTO_HTTP, 80));
|
_defaultPorts.insert(PortMap::value_type(Request::PROTO_HTTP, 80));
|
||||||
_defaultPorts.insert(PortMap::value_type(Request::PROTO_HTTPS, 443));
|
_defaultPorts.insert(PortMap::value_type(Request::PROTO_HTTPS, 443));
|
||||||
|
@ -97,6 +104,7 @@ FeatureConfig::FeatureConfig() {
|
||||||
FeatureMap::value_type(FEATURE_MESSAGE_DIGEST, MESSAGE_DIGEST_ENABLED),
|
FeatureMap::value_type(FEATURE_MESSAGE_DIGEST, MESSAGE_DIGEST_ENABLED),
|
||||||
FeatureMap::value_type(FEATURE_ASYNC_DNS, ASYNC_DNS_ENABLED),
|
FeatureMap::value_type(FEATURE_ASYNC_DNS, ASYNC_DNS_ENABLED),
|
||||||
FeatureMap::value_type(FEATURE_GZIP, GZIP_ENABLED),
|
FeatureMap::value_type(FEATURE_GZIP, GZIP_ENABLED),
|
||||||
|
FeatureMap::value_type(FEATURE_FIREFOX3_COOKIE, FIREFOX3_COOKIE_ENABLED),
|
||||||
};
|
};
|
||||||
|
|
||||||
_features.insert(&featureArray[0], &featureArray[arrayLength(featureArray)]);
|
_features.insert(&featureArray[0], &featureArray[arrayLength(featureArray)]);
|
||||||
|
|
|
@ -68,6 +68,7 @@ public:
|
||||||
static const std::string FEATURE_MESSAGE_DIGEST;
|
static const std::string FEATURE_MESSAGE_DIGEST;
|
||||||
static const std::string FEATURE_ASYNC_DNS;
|
static const std::string FEATURE_ASYNC_DNS;
|
||||||
static const std::string FEATURE_GZIP;
|
static const std::string FEATURE_GZIP;
|
||||||
|
static const std::string FEATURE_FIREFOX3_COOKIE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
|
@ -58,6 +58,10 @@ void FeatureConfigTest::testFeatureSummary() {
|
||||||
"BitTorrent",
|
"BitTorrent",
|
||||||
#endif // ENABLE_BITTORRENT
|
#endif // ENABLE_BITTORRENT
|
||||||
|
|
||||||
|
#ifdef HAVE_SQLITE3
|
||||||
|
"Firefox3 Cookie",
|
||||||
|
#endif // HAVE_SQLITE3
|
||||||
|
|
||||||
#ifdef HAVE_LIBZ
|
#ifdef HAVE_LIBZ
|
||||||
"GZip",
|
"GZip",
|
||||||
#endif // HAVE_LIBZ
|
#endif // HAVE_LIBZ
|
||||||
|
|
Loading…
Reference in New Issue