diff --git a/src/Rest/RestClient.php b/src/Rest/RestClient.php index edbb03d7e6cd296fb719b2a8f96310cdffae437b..b7df05619cbeb1dcf8ab588fbf53429b978e5a5e 100644 --- a/src/Rest/RestClient.php +++ b/src/Rest/RestClient.php @@ -216,14 +216,15 @@ class RestClient implements RestClientInterface { * Method to initiate the call, such as GET or POST. Defaults to GET. * * @throws RequestException - * Request exxception. + * Request exception. * * @return GuzzleHttp\Psr7\Response * Response object. */ protected function httpRequest($url, $data = NULL, array $headers = [], $method = 'GET') { // Build the request, including path and headers. Internal use. - return $this->httpClient->$method($url, ['headers' => $headers, 'body' => $data], $this->httpClientOptions); + $args = NestedArray::mergeDeep($this->httpClientOptions, ['headers' => $headers, 'body' => $data]); + return $this->httpClient->$method($url, $args); } /**