X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/cd02bac646f42a0cb402ff2dc8240aa01f1f0fb8..c32d1b6ffe81afb36fdcaebe0254ad191b72bff6:/src/phinde/HttpRequest.php diff --git a/src/phinde/HttpRequest.php b/src/phinde/HttpRequest.php index e68bd84..4635973 100644 --- a/src/phinde/HttpRequest.php +++ b/src/phinde/HttpRequest.php @@ -3,9 +3,9 @@ namespace phinde; class HttpRequest extends \HTTP_Request2 { - public function __construct($url) + public function __construct($url = null, $method = 'GET') { - parent::__construct($url); + parent::__construct($url, $method); $this->setConfig('follow_redirects', true); $this->setConfig('connect_timeout', 5); $this->setConfig('timeout', 10);