Fix guzzle InvalidArgumentException when body is passed as an array
authorBill Pirkle <bpirkle@wikimedia.org>
Thu, 13 Dec 2018 00:11:27 +0000 (18:11 -0600)
committerBill Pirkle <bpirkle@wikimedia.org>
Thu, 13 Dec 2018 00:11:27 +0000 (18:11 -0600)
commit32d9c56c27d99831a56b10f5b1e69996ebe505cd
tree980f5ea84864d16eae0e114e49ce95f58c6e97a6
parent13314ea479410f83a48dd8e450a0f44d12c4f05c
Fix guzzle InvalidArgumentException when body is passed as an array

The postBody option to GuzzleHttpRequest can be passed as an array
or as a string.  We were previously handling the array case incorrectly.

Bug: T211806
Change-Id: I8f40b9de9d40a9361eb45103608bf3aaa943bf73
includes/http/GuzzleHttpRequest.php