Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1881 committed May 20, 2022
1 parent b48e8da commit c45a82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public function setDefault()
*/
public function setMethod(string $method)
{
$this->setDefault();
$methodUP = strtoupper($method);
if (isset(self::$method_properties[$methodUP])) {
$this->req->method = $methodUP;
Expand Down Expand Up @@ -236,6 +235,7 @@ public function setBody($body = null, $type = self::RAW)
*/
public function send(string $method, string $url, array $headers = [], $body = null, $body_type = self::RAW)
{
$this->setDefault();
$this->setMethod($method);
$this->setUrl($url);
$this->setHeader($headers);
Expand Down

0 comments on commit c45a82b

Please sign in to comment.