diff --git a/src/iTunes/Validator.php b/src/iTunes/Validator.php index 2771a82..9627e7d 100755 --- a/src/iTunes/Validator.php +++ b/src/iTunes/Validator.php @@ -198,9 +198,13 @@ public function setRequestOptions(array $request_options): self */ protected function getClientConfig(): array { - $base_uri = ['base_uri' => $this->endpoint]; + if (!isset($this->request_options['base_uri'])) { + $base_uri = ['base_uri' => $this->endpoint]; - return array_merge($this->request_options, $base_uri); + return array_merge($this->request_options, $base_uri); + } + + return $this->request_options; } /**