From bf135da49a7e90e8ade38629006aa148303bcb76 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 20 Feb 2010 18:45:33 +0000 Subject: [PATCH] (trunk libT) fix bug that prevented adding torrents by URL from an ftp source via http/rpc --- libtransmission/rpcimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c index 90a8128e3..3302e014d 100644 --- a/libtransmission/rpcimpl.c +++ b/libtransmission/rpcimpl.c @@ -983,7 +983,7 @@ gotMetadataFromURL( tr_session * session UNUSED, dbgmsg( "torrentAdd: HTTP response code was %ld (%s); response length was %zu bytes", response_code, tr_webGetResponseStr( response_code ), response_byte_count ); - if( response_code == 200 ) + if( response_code==200 || response_code==221 ) /* http or ftp success.. */ { tr_ctorSetMetainfo( data->ctor, response, response_byte_count ); addTorrentImpl( data->data, data->ctor );