Skip to content
Snippets Groups Projects

Issue #3168940: Cache is not returning proper results when there are no query arguments passed to the request

Merged Issue #3168940: Cache is not returning proper results when there are no query arguments passed to the request
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -135,13 +135,16 @@ class Client {
*
* @param array $args
* Args to request.
* @param string $method
* Method called in the request.
*
* @return array
* Return the args array.
*/
private function buildArgs(array $args) {
private function buildArgs(array $args, $method) {
// Add in additional parameters then sort them for signing.
$args['APIKey'] = $this->api_key;
$args['method'] = $method;
ksort($args);
return $args;
Loading