summaryrefslogtreecommitdiff
path: root/src/ProtocolDetector.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-11 12:09:19 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-11 12:09:19 +0000
commit80edde0205f8065bca84ab7acee9f38c021864b1 (patch)
treed714d4ee84f11a4ec98af6931f1fcb7f8bded7ac /src/ProtocolDetector.cc
parentec3bd81486d6f9b266753984f0da31f8d39fd951 (diff)
2010-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use uri::parse instead of Request::setUri() where just URI parser is needed. * src/AbstractCommand.cc * src/AdaptiveURISelector.cc * src/DefaultBtAnnounce.cc * src/FeedbackURISelector.cc * src/FileEntry.cc * src/HttpResponseCommand.cc * src/ProtocolDetector.cc * src/Request.cc * src/RequestGroupMan.cc
Diffstat (limited to 'src/ProtocolDetector.cc')
-rw-r--r--src/ProtocolDetector.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ProtocolDetector.cc b/src/ProtocolDetector.cc
index c90cc1ac..1daa1991 100644
--- a/src/ProtocolDetector.cc
+++ b/src/ProtocolDetector.cc
@@ -42,6 +42,7 @@
#include "File.h"
#include "util.h"
#include "RecoverableException.h"
+#include "uri.h"
#ifdef ENABLE_BITTORRENT
# include "bittorrent_helper.h"
#endif // ENABLE_BITTORRENT
@@ -54,7 +55,8 @@ ProtocolDetector::~ProtocolDetector() {}
bool ProtocolDetector::isStreamProtocol(const std::string& uri) const
{
- return Request().setUri(uri);
+ uri::UriStruct us;
+ return uri::parse(us, uri);
}
bool ProtocolDetector::guessTorrentFile(const std::string& uri) const