Skip to content

Commit 07f918a

Browse files
committed
#11 - Add X-Vault-Request header
1 parent b1ea4a6 commit 07f918a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TgVault/Hashicorp/HashicorpVault.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ protected function request($curl, $path, $additionalHeaders = array()) {
350350
}
351351
}
352352
***********************************/
353+
$additionalHeaders[] = 'X-Vault-Request: true';
353354
if (($this->token != NULL) && isset($this->token->client_token)) {
354355
$additionalHeaders[] = 'X-Vault-Token: '.$this->token->client_token;
355356
}

0 commit comments

Comments
 (0)