Use own HttpRequest class so we get get our own user agent
authorChristian Weiske <cweiske@cweiske.de>
Sat, 7 Mar 2020 17:48:43 +0000 (18:48 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 7 Mar 2020 17:48:43 +0000 (18:48 +0100)
src/phinde/HubUrlExtractor.php

index a7f38a0..81a612c 100644 (file)
@@ -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);
         }