Skip to content

Commit b4d1e71

Browse files
committed
Updated headers
1 parent 1284adc commit b4d1e71

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/HttpClient.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,20 @@ public function __construct($apiKey, SecureNativeOptions $options)
1414
'base_uri' => $options->getApiUrl(),
1515
'timeout' => $options->getTimeout() / 1000,
1616
'headers' => [
17-
'UserTraits-Agent' => 'SecureNative-PHP',
17+
'User-Agent' => 'SecureNative-PHP',
1818
'SN-Version' => '1.0.0',
1919
'Authorization' => $apiKey,
2020
'Content-Type' => 'application/json',
2121
]
2222
];
2323

24-
// $eventOptions = array_merge($defaultOptions, $options);
25-
$eventOptions = $defaultOptions; // TODO: Combine options
24+
$eventOptions = $defaultOptions;
2625
parent::__construct($eventOptions);
2726
}
2827

2928
protected function getHandlerStack()
3029
{
31-
$handlerStack = HandlerStack::create($this->getHandler());
32-
33-
return $handlerStack;
30+
return HandlerStack::create($this->getHandler());
3431
}
3532

3633
protected function getHandler()

0 commit comments

Comments
 (0)