From 64c832103b4f939a03eb4ae2182d58b3796242dc Mon Sep 17 00:00:00 2001 From: Bryan Davis <github@casadebender.com> Date: Thu, 23 Feb 2017 12:49:47 -0700 Subject: [PATCH] Send parse requests via POST (#147) In 1d61770 the Site.parse() command was changed from GET to POST. This effectively limits the amount of wikitext that can be rendered to what will fit in the URI limit of the webserver serving the MediaWiki site. We could do something really tricky to look at the size of the text argument and switch between GET and POST based on that, but it seems much simpler to just stick with POST for this action. Downstream bug: https://phabricator.wikimedia.org/T158715 --- mwclient/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwclient/client.py b/mwclient/client.py index 1a90d0f..d6ae699 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -639,7 +639,7 @@ class Site(object): kwargs['redirects'] = '1' if mobileformat: kwargs['mobileformat'] = '1' - result = self.get('parse', **kwargs) + result = self.post('parse', **kwargs) return result['parse'] # def block(self): TODO? -- GitLab