From 2edf36eb45d427262e9f83af90b8b4fc2f69aab8 Mon Sep 17 00:00:00 2001 From: spoob Date: Fri, 15 Jan 2010 15:03:00 +0100 Subject: Better Argument Parsing in Core, littel fixes --- module/network/Request.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module/network/Request.py') diff --git a/module/network/Request.py b/module/network/Request.py index 9155185fd..dfe29e62d 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -125,6 +125,8 @@ class Request: def load(self, url, get={}, post={}, ref=True, cookies=False, just_header=False): + url = str(url) + if post: post = urllib.urlencode(post) else: @@ -244,6 +246,8 @@ class Request: def download(self, url, file_name, get={}, post={}, ref=True, cookies=False): + url = str(url) + if post: post = urllib.urlencode(post) else: -- cgit v1.2.3