Skip to content

Commit

Permalink
JSON 请求支持空对象
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanson authored Jul 19, 2019
1 parent 22f6ad7 commit b81e458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public function post($url, array $form = [])
* JSON request.
*
* @param string $url
* @param array $query
* @param $query
*
* @return ResponseInterface
*/
public function json($url, array $query = [])
public function json($url, $query = [])
{
return $this->request('POST', $url, ['json' => $query]);
}
Expand Down

0 comments on commit b81e458

Please sign in to comment.