mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
decode response in json by default
This commit is contained in:
parent
68dc7f9f99
commit
11c397b566
1 changed files with 2 additions and 2 deletions
|
|
@ -89,8 +89,8 @@ class Curl
|
|||
return curl_getinfo($this->_connection, CURLINFO_TOTAL_TIME_T);
|
||||
}
|
||||
|
||||
public function getResponse()
|
||||
public function getResponse(bool $json = true)
|
||||
{
|
||||
return $this->_response;
|
||||
return $json ? json_decode($this->_response) : $this->_response;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue