We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611eb29 commit 027fca1Copy full SHA for 027fca1
src/WoltClient.php
@@ -32,8 +32,6 @@ public static function create(): static
32
: config('wolt.production_url')
33
);
34
35
- $client->addHeader('WOLT-API-KEY', config('wolt.order_api_key'));
36
-
37
return $client;
38
}
39
@@ -50,6 +48,7 @@ public function createPendingRequest(): void
50
48
public function prepareRequest(): PendingRequest
51
49
{
52
$this->addRouteParameter('baseUrl', $this->baseUrl);
+ $this->addHeader('WOLT-API-KEY', config('wolt.order_api_key'));
53
54
return $this->request
55
->withUrlParameters($this->routeParameters)
0 commit comments