Commit graph

2 commits

Author SHA1 Message Date
Bill Pirkle
4ea9ec6654 Allow REST API delete method request to contain a body
Per RFC 7231 (https://www.rfc-editor.org/rfc/rfc7231#section-4.3.5), sending a body
with the DELETE method "has no defined semantics". Allow it, as it is useful for
passing the csrf token required by some authentication methods.

Bug: T309388
Change-Id: I9fb7f3c536af4636e33f776de32f9f90b88827c9
2022-06-03 16:26:46 -05:00
Bill Pirkle
a4b5c67b16 Add unit testing for MediaWiki\Rest\Validator
MediaWiki\Rest\Validator is largely a wrapper, but has some behavior
of its own which deserves testing.

Bug: T309388
Change-Id: Ida4be429fa6795a3494593c457b93ef8e4f68b3b
2022-06-03 12:53:38 -05:00