diff options
author | spoob <spoob@gmx.de> | 2010-01-15 15:03:00 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-01-15 15:03:00 +0100 |
commit | 2edf36eb45d427262e9f83af90b8b4fc2f69aab8 (patch) | |
tree | 5cadf5d76f3784512973244194b19fbade2c1a4b /module/network | |
parent | merge + fix (diff) | |
download | pyload-2edf36eb45d427262e9f83af90b8b4fc2f69aab8.tar.xz |
Better Argument Parsing in Core, littel fixes
Diffstat (limited to 'module/network')
-rwxr-xr-x | module/network/Request.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |