1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Don't try MIME handlers for application/x-bittorrent

It is an internally supported protocol, so it should be all internal. The
other thing was just causing headacks. Thanks to Neuromancer for suggesting
not to endeavor into another configuration nightmare. And thanks to arcatan
for requesting this for the n-th time. ;)
This commit is contained in:
Jonas Fonseca 2005-12-13 16:32:53 +01:00 committed by Jonas Fonseca
parent cd4fd51438
commit be3223b38e

View File

@ -1183,8 +1183,9 @@ setup_download_handler(struct session *ses, struct download *loading,
if (type_query) {
ret = 1;
#ifdef CONFIG_BITTORRENT
if (!handler
&& (!strcasecmp(ctype, "application/x-bittorrent")
/* A terrible waste of a good MIME handler here, but we want
* to use the type_query this is easier. */
if ((!strcasecmp(ctype, "application/x-bittorrent")
|| !strcasecmp(ctype, "application/x-torrent"))
&& !get_cmd_opt_bool("anonymous"))
query_bittorrent_dialog(type_query);