- WIP on a new TaksReport object
This commit is contained in:
1 parent
5a737c06c4
commit
38df94fc2a
5 files changed
+94
-9
No files matched your search
@@ -4,8 +4,8 @@ namespace Negundo\Client\Transport;
|
||||
|
||||
class Curl implements TransportInterface {
|
||||
|
||||
public $timeout = 2;
|
||||
|
||||
public $timeout = 100;
|
||||
|
||||
public $throwErrors = true;
|
||||
|
||||
public $verifySsl = false;
|
||||
@@ -39,7 +39,10 @@ class Curl implements TransportInterface {
|
||||
throw new \Exception(sprintf("HTTP code received : $code with page content : %s", $exec));
|
||||
}
|
||||
}
|
||||
|
||||
if ($_GET['dev'] ?? false) {
|
||||
echo($exec);
|
||||
die();
|
||||
}
|
||||
curl_close($ch);
|
||||
|
||||
return $exec;
|
||||
|
||||
Reference in new issue
Block a user