diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-10-14 18:05:34 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-10-14 18:05:34 +0900 |
| commit | c904aa50fedd354937cb1dc29044712404c0c785 (patch) | |
| tree | 934c3194f9b5ca733945edd9c8c737dec35040c5 /src/ProtocolDetector.cc | |
| parent | eebc704b1933e5e43ff38cd37adb48d3daef1aad (diff) | |
Use uri_split instead of uri::parse where appropriate
Diffstat (limited to 'src/ProtocolDetector.cc')
| -rw-r--r-- | src/ProtocolDetector.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ProtocolDetector.cc b/src/ProtocolDetector.cc index f8160146..4326e77d 100644 --- a/src/ProtocolDetector.cc +++ b/src/ProtocolDetector.cc @@ -55,8 +55,7 @@ ProtocolDetector::~ProtocolDetector() {} bool ProtocolDetector::isStreamProtocol(const std::string& uri) const { - uri::UriStruct us; - return uri::parse(us, uri); + return uri_split(NULL, uri.c_str()) == 0; } bool ProtocolDetector::guessTorrentFile(const std::string& uri) const |
