Don't use unicode when not needed in urlopen

This commit is contained in:
Ruud
2012-12-31 13:10:11 +01:00
parent c29cb39797
commit 0cbee01024
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -98,6 +98,7 @@ class Plugin(object):
# http request
def urlopen(self, url, timeout = 30, params = None, headers = None, opener = None, multipart = False, show_error = True):
url = ss(url)
if not headers: headers = {}
if not params: params = {}