]> wagnertech.de Git - mfinanz.git/blobdiff - SL/ShopConnector/Shopware6.pm
Shopware6: Optionalen Proxy erlauben und Protokoll http oder https initialisieren
[mfinanz.git] / SL / ShopConnector / Shopware6.pm
index 9944b33d9bb84021629af160b1476cf904b7dcc7..38ec37f97911d41a661cb763caa0720429c4fa41 100644 (file)
@@ -710,6 +710,9 @@ sub init_connector {
   my ($self) = @_;
 
   my $client = REST::Client->new(host => $self->config->server);
+
+  $client->getUseragent()->proxy([$self->config->protocol], $self->config->proxy) if $self->config->proxy;
+
   $client->addHeader('Content-Type', 'application/json');
   $client->addHeader('charset',      'UTF-8');
   $client->addHeader('Accept',       'application/json');