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.
2 parents f2eea7a + c77cd4e commit 5f1d6b9Copy full SHA for 5f1d6b9
src/RequestSigner/HeaderRequestSigner.php
@@ -18,7 +18,11 @@ public function __construct(string $headerName, string $headerValueFormat)
18
19
public function modify(array &$options, string $token): void
20
{
21
- if (!array_key_exists('headers', $options) || !is_array($options['headers'])) {
+ if (!array_key_exists('headers', $options)) {
22
+ $options['headers'] = [];
23
+ }
24
+
25
+ if (!is_array($options['headers'])) {
26
return;
27
}
28
0 commit comments