Skip to content

Commit

Permalink
Support secure url's
Browse files Browse the repository at this point in the history
  • Loading branch information
tumd committed Jun 8, 2014
1 parent 890bee7 commit 46508c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtorrent/lib/torrentparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _get_raw_torrent(self):
self.file_type = "file"
self._raw_torrent = open(self.torrent, "rb").read()
# url?
elif re.search("^(http|ftp):\/\/", self.torrent, re.I):
elif re.search("^(http|ftp)s?:\/\/", self.torrent, re.I):
self.file_type = "url"
self._raw_torrent = urlopen(self.torrent).read()

Expand Down

0 comments on commit 46508c6

Please sign in to comment.