Skip to content

Commit

Permalink
Revert "默认改为使用post的方式提交数据"
Browse files Browse the repository at this point in the history
This reverts commit cd2f6f6.
  • Loading branch information
liu21st committed Jan 28, 2021
1 parent cd2f6f6 commit cda69a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class Request
{
use ObjectAccess;

public $method = "POST";
public $method = "GET";

public $uri;

Expand All @@ -35,7 +35,7 @@ public function resolveOptions()
if ($this->method == 'GET') {
$this->options['query'] = $this->data;
} else {
$this->options['form_params'] = $this->data;
$this->options['body'] = $this->data;
}
}

Expand Down

0 comments on commit cda69a8

Please sign in to comment.