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 0690ab9 + 509e41b commit 6524cebCopy full SHA for 6524ceb
src/Request.php
@@ -175,7 +175,7 @@ public function setWriteOptions(WriteOptions $options = null) {
175
if ($this->config->TokenInHeader) {
176
$this->Headers->set('X-Consul-Token', $options->Token);
177
} else {
178
- $this->Headers->set('token', $options->Token);
+ $this->Params->set('token', $options->Token);
179
}
180
181
if (0 !== $options->RelayFactor) {
0 commit comments