From cf8dbf22f82f072f771e07e295a6be27a8fae692 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 19 Jun 2009 06:55:28 +0000 Subject: [PATCH] - Fixed a bug in download_url() in helpers.py --- src/search_engine/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search_engine/helpers.py b/src/search_engine/helpers.py index 3b872aa3b..54900c28c 100644 --- a/src/search_engine/helpers.py +++ b/src/search_engine/helpers.py @@ -22,7 +22,7 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -#VERSION: 1.01 +#VERSION: 1.02 # Author: # Christophe DUMEZ (chris@qbittorrent.org) @@ -69,7 +69,7 @@ def download_file(url): file = os.fdopen(file, "wb") # Download url req = urllib2.Request(url) - response = urllib2.urlopen(url) + response = urllib2.urlopen(req) dat = response.read() # Write it to a file file.write(dat)