From 7ceb14b5c5aeeed1b3bc6db42e118138088c990c Mon Sep 17 00:00:00 2001
From: Bryan Tong Minh <bryan.tongminh@gmail.com>
Date: Wed, 16 Feb 2011 21:42:46 +0000
Subject: [PATCH] Fix for upload-by-url

---
 mwclient/client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mwclient/client.py b/mwclient/client.py
index a255afb..f462982 100644
--- a/mwclient/client.py
+++ b/mwclient/client.py
@@ -379,7 +379,7 @@ class Site(object):
 			predata['session_key'] = session_key 
 		
 		if file is None:
-			postdata = predata
+			postdata = self._query_string(predata)
 		else:			
 			if type(file) is str:
 				file_size = len(file)
-- 
GitLab