Browse Source

Body should default to null for GET requests with Http Client

Andrew LeCody 9 years ago
parent
commit
0804be9792
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/Client.php

+ 1 - 1
src/Http/Client.php

@@ -200,7 +200,7 @@ class Client
     public function get($url, $data = [], array $options = [])
     {
         $options = $this->_mergeOptions($options);
-        $body = [];
+        $body = null;
         if (isset($data['_content'])) {
             $body = $data['_content'];
             unset($data['_content']);