Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Override the JHttp contructor to use JHttpTransportStream.

  • Loading branch information...
commit 022600793ce56d9b4e11a9bf21efbea455fd8d3f 1 parent d9205b8
unknown authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 libraries/joomla/github/http.php
View
5 libraries/joomla/github/http.php
@@ -46,8 +46,9 @@ class JGithubHttp extends JHttp
*/
public function __construct(JRegistry $options = null, JHttpTransport $transport = null)
{
- // Call the JHttp constructor to setup the object.
- parent::__construct($options, $transport);
+ // Override the JHttp contructor to use JHttpTransportStream.
+ $this->options = isset($options) ? $options : new JRegistry;
+ $this->transport = isset($transport) ? $transport : new JHttpTransportStream($this->options);
// Make sure the user agent string is defined.
$this->options->def('userAgent', 'JGitHub/2.0');
Please sign in to comment.
Something went wrong with that request. Please try again.