Loading core/lib/Drupal/Core/Http/ClientFactory.php +2 −2 Changes for core/lib/Drupal/Core/Http/ClientFactory.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,8 +5,8 @@ use Drupal\Component\Utility\NestedArray; use Drupal\Core\Site\Settings; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\HandlerStack; use GuzzleHttp\Utils; /** * Helper class to construct a HTTP client with Drupal specific config. Loading Loading @@ -50,7 +50,7 @@ public function fromOptions(array $config = []) { 'verify' => TRUE, 'timeout' => 30, 'headers' => [ 'User-Agent' => 'Drupal/' . \Drupal::VERSION . ' (+https://www.drupal.org/) ' . Utils::defaultUserAgent(), 'User-Agent' => sprintf('Drupal/%s (+https://www.drupal.org/) GuzzleHttp/%d', \Drupal::VERSION, ClientInterface::MAJOR_VERSION), ], 'handler' => $this->stack, // Security consideration: prevent Guzzle from using environment variables Loading Loading
core/lib/Drupal/Core/Http/ClientFactory.php +2 −2 Changes for core/lib/Drupal/Core/Http/ClientFactory.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,8 +5,8 @@ use Drupal\Component\Utility\NestedArray; use Drupal\Core\Site\Settings; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\HandlerStack; use GuzzleHttp\Utils; /** * Helper class to construct a HTTP client with Drupal specific config. Loading Loading @@ -50,7 +50,7 @@ public function fromOptions(array $config = []) { 'verify' => TRUE, 'timeout' => 30, 'headers' => [ 'User-Agent' => 'Drupal/' . \Drupal::VERSION . ' (+https://www.drupal.org/) ' . Utils::defaultUserAgent(), 'User-Agent' => sprintf('Drupal/%s (+https://www.drupal.org/) GuzzleHttp/%d', \Drupal::VERSION, ClientInterface::MAJOR_VERSION), ], 'handler' => $this->stack, // Security consideration: prevent Guzzle from using environment variables Loading