From aa1b08f7f5ab5a0ab723f7c698858a37ec3cba40 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sat, 7 Mar 2020 18:48:43 +0100 Subject: Use own HttpRequest class so we get get our own user agent --- src/phinde/HubUrlExtractor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/phinde/HubUrlExtractor.php b/src/phinde/HubUrlExtractor.php index a7f38a0..81a612c 100644 --- a/src/phinde/HubUrlExtractor.php +++ b/src/phinde/HubUrlExtractor.php @@ -196,8 +196,7 @@ class HubUrlExtractor public function getRequest() { if ($this->request === null) { - $request = new \HTTP_Request2(); - $request->setConfig('follow_redirects', true); + $request = new HttpRequest(); $this->setRequestTemplate($request); } -- cgit v1.2.3