Add methods to get raw request in WebRequest
authorcsteipp <csteipp@wikimedia.org>
Wed, 26 Jun 2013 21:10:52 +0000 (14:10 -0700)
committerCSteipp <csteipp@wikimedia.org>
Mon, 29 Jul 2013 16:52:17 +0000 (16:52 +0000)
commit8ef4572700b6e286e7dd03b0905364aff092005f
tree225d2cdd07cf186c9d767b44220dd7c96aba5f4f
parent278ed5ca84689f71f56aa972345626232f84e377
Add methods to get raw request in WebRequest

Make it possible to get the raw parameters given to the request, with
no escaping. This is needed for features like OAuth, where a signature
is calculated over the parameters to verify their integrity and source.

FauxRequest is extended so the original request doesn't pollute the
fake one. This could be extended so "raw" values could be set and used,
but there isn't a use case for that yet, so it's not done here.

Change-Id: I8710844f21d21cbbf28517b0cc25b0713b506bee
includes/WebRequest.php