Use POST to submit wikitext to mw.api.parse
authorAdam Wight <spam@ludd.net>
Tue, 23 Apr 2019 21:14:47 +0000 (14:14 -0700)
committerAdam Wight <spam@ludd.net>
Fri, 26 Apr 2019 17:12:38 +0000 (10:12 -0700)
commitce01e262ac04ee4dcdbebd7fcea6f15f3ae44d3e
tree9316aa8f9359cb55b77026dd837879dc742772a1
parent0449f653c7147328e9ddcce9861733fc29e6f961
Use POST to submit wikitext to mw.api.parse

It was impossible to parse wikitext longer than the maximum URL length of about
2000 characters, because our library only used GET requests.  This patch
switches to using POST for inline content, while still using GET when parsing
existing pages.

Bug: T216837
Change-Id: I971b7fc197517a2761f2100fc2aeda087ff52a78
resources/src/mediawiki.api/parse.js
tests/qunit/suites/resources/mediawiki.api/mediawiki.api.parse.test.js