Skip to content
Snippets Groups Projects
Commit 9c695d80 authored by xenophyle's avatar xenophyle
Browse files

Issue #2951089 by stephen-cox, robertoperuzzo, guietc, thomscode, progzy,...

Issue #2951089 by stephen-cox, robertoperuzzo, guietc, thomscode, progzy, samuel.mortenson: WSOD - Proxy issue
parent c10340be
No related branches found
No related tags found
1 merge request!353.x - Merge Oauth work into 3.x after that work has beeb merged into 2.x
Pipeline #301228 passed with warnings
......@@ -4,6 +4,7 @@ namespace Drupal\mailchimp;
use Drupal\Core\Config\Config;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\Site\Settings;
use Drupal\Core\State\StateInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\mailchimp\Exception\ClientFactoryException;
......@@ -137,6 +138,11 @@ class ClientFactory {
],
];
$http_client_config = Settings::get('http_client_config', []);
if (isset($http_client_config['proxy'])) {
$http_options['proxy'] = $http_client_config['proxy'];
}
$api_class = new $api_class_name($authentication_settings, $http_options);
if (!isset($api_class)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment