diff --git a/src/HttpFactory.php b/src/HttpFactory.php index 6e81cb83..b5ccb726 100644 --- a/src/HttpFactory.php +++ b/src/HttpFactory.php @@ -36,6 +36,11 @@ public function getHttp($options = [], $adapters = null) ); } + // Set default userAgent if nothing else is set + if (!isset($options['userAgent'])) { + $options['userAgent'] = 'Mozilla/5.0 Joomla!/Framework'; + } + if (!$driver = $this->getAvailableDriver($options, $adapters)) { throw new \RuntimeException('No transport driver available.'); }