This commit is contained in:
j 2014-01-02 19:57:37 +05:30
parent ee390fcdb1
commit c7b396d004

View file

@ -893,7 +893,7 @@ class API(ox.API):
uploadUrl = data['uploadUrl'] uploadUrl = data['uploadUrl']
if uploadUrl.startswith('/'): if uploadUrl.startswith('/'):
u = urlparse(url) u = urlparse(url)
uploadUrl = '%s//%s%s' % (u.scheme, u.netloc, uploadUrl) uploadUrl = '%s://%s%s' % (u.scheme, u.netloc, uploadUrl)
f = open(filename) f = open(filename)
fsize = os.stat(filename).st_size fsize = os.stat(filename).st_size
done = 0 done = 0